Skip to content

Commit d2c64aa

Browse files
committed
Augment test
(cherry picked from commit c53ed76d23fbc3fbadab98a13240d2d5185692dd)
1 parent 8d08165 commit d2c64aa

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/run_tests/driver_mt_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ def test_magnetotellurics_fwr_run(
106106
)
107107
with get_workspace(tmp_path / "inversion_test.ui.geoh5") as geoh5:
108108
components = SyntheticsComponents(geoh5, options=opts)
109+
110+
# Test for label index supporting ints - bypass setter
111+
components.survey.edit_em_metadata({"Channels": [10, 100, 1000]})
112+
109113
params = MTForwardOptions.build(
110114
geoh5=geoh5,
111115
mesh=components.mesh,
@@ -127,6 +131,9 @@ def test_magnetotellurics_fwr_run(
127131
fwr_driver = MTForwardDriver(params)
128132
fwr_driver.run()
129133

134+
with Workspace(tmp_path / "inversion_test.ui.geoh5") as geoh5:
135+
assert geoh5.get_entity("Iteration_0_zyy_real_[0]")[0] is not None
136+
130137

131138
def test_magnetotellurics_run(tmp_path: Path, max_iterations=1, pytest=True):
132139
# pass

0 commit comments

Comments
 (0)