add test for (delete header item by mnemonic)
@@ -5,7 +5,7 @@ import fnmatch
import numpy as np
import pytest
-from lasio import read
+import lasio
test_dir = os.path.dirname(__file__)
@@ -14,10 +14,15 @@ stegfn = lambda vers, fn: os.path.join(
os.path.dirname(__file__), "examples", vers, fn)
def test_delete_curve():
- l = read(egfn("sample.las"))
+ 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']
+
+def test_delete_section_item():
+ las = lasio.read(egfn('sample.las'))
+ del las.params['MDEN']
+ assert las.params.keys() == ['BHT', 'BS', 'FD', 'MATR', 'RMF', 'DFD']
\ No newline at end of file
