add final test for (del las.curves[mnemonic])
@@ -14,13 +14,9 @@ stegfn = lambda vers, fn: os.path.join(
os.path.dirname(__file__), "examples", vers, fn)
def test_delete_curve():
- l = lasio.read(egfn("sample.las"))
- shape = l.data.shape[1]
- curve = l.curves.keys()[1]
- l.delete_curve(curve)
- assert curve not in l.curves.keys()
- assert len(l.curves.keys()) == (shape - 1)
- assert l.curves.keys() == ['DEPT', 'RHOB', 'NPHI', 'SFLU', 'SFLA','ILM', 'ILD']
+ las = lasio.read(egfn("sample.las"))
+ del las.curves['DT']
+ assert las.curves.keys() == ['DEPT', 'RHOB', 'NPHI', 'SFLU', 'SFLA','ILM', 'ILD']
def test_delete_section_item_by_index():
las = lasio.read(egfn('sample.las'))
