Skip to content

Commit 7645bca

Browse files
authored
Merge pull request #307 from MiraGeoscience/GEOPY-2569
GEOPY-2569: Wrong normalization for MT
2 parents 38f6910 + 682376b commit 7645bca

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

simpeg_drivers/components/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def get_normalizations(self):
300300
if comp in ["gz", "bz", "gxz", "gyz", "bxz", "byz"]:
301301
normalizations[chan][comp] = -1 * np.ones(self.mask.sum())
302302
elif self.params.inversion_type in ["magnetotellurics"]:
303-
normalizations[chan][comp] = -1 * np.ones(self.mask.sum())
303+
normalizations[chan][comp] = np.ones(self.mask.sum())
304304
elif self.params.inversion_type in ["tipper"]:
305305
if "imag" in comp:
306306
normalizations[chan][comp] = -1 * np.ones(self.mask.sum())

tests/run_tests/driver_mt_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
# To test the full run and validate the inversion.
4242
# Move this file out of the test directory and run.
4343

44-
target_run = {"data_norm": 0.032649770, "phi_d": 6.68, "phi_m": 263}
44+
target_run = {"data_norm": 0.032649770, "phi_d": 7.13, "phi_m": 282}
4545

4646

4747
def setup_data(workspace, survey):
@@ -187,7 +187,7 @@ def test_magnetotellurics_run(tmp_path: Path, max_iterations=1, pytest=True):
187187
output["data"] = orig_zyy_real_1
188188
assert not run_ws.get_entity("Iteration_0_sensitivities")[0]
189189
if pytest:
190-
check_target(output, target_run, tolerance=0.2)
190+
check_target(output, target_run, tolerance=0.1)
191191
nan_ind = np.isnan(run_ws.get_entity("Iteration_0_model")[0].values)
192192
inactive_ind = run_ws.get_entity("active_cells")[0].values == 0
193193
assert np.all(nan_ind == inactive_ind)

0 commit comments

Comments
 (0)