def test_striplog_merge_overlaps(): """Test merging. This example is from the tutorial. """ lappy = Striplog(lappy_list) assert lappy.find_overlaps(index=True) == [0, 2] assert lappy.merge_overlaps() is None assert lappy.find_overlaps() is None
def test_striplog_merge(): """Test merging. This example is from the tutorial. """ lappy = Striplog([Interval(**{'top': 0, 'base': 60, 'components':[Component({'lithology': 'dolomite'}),]}), Interval(**{'top': 55, 'base': 75, 'components':[Component({'lithology': 'limestone'}),]}), Interval(**{'top': 75, 'base': 80, 'components':[Component({'lithology': 'volcanic'}),]}), Interval(**{'top': 78, 'base': 100, 'components':[Component({'lithology': 'anhydrite'}),]}) ]) assert lappy.find_overlaps(index=True) == [0, 2] assert lappy.merge_overlaps() is None assert lappy.find_overlaps() is None assert lappy.merge_overlaps() is None