Skip to content

Commit 2fa1112

Browse files
committed
fix tests
1 parent 4b7168e commit 2fa1112

4 files changed

Lines changed: 4 additions & 9 deletions

File tree

simpeg_drivers/plate_simulation/models/options.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ def center(
7171
:param surface: Points-like object to reference plate depth from.
7272
"""
7373

74-
xyz = np.atleast_2d(
75-
[
76-
survey.vertices[:, 0].mean(),
7774
center_x = survey.vertices[:, 0].mean() + self.geometry.easting
7875
center_y = survey.vertices[:, 1].mean() + self.geometry.northing
7976
xyz = np.atleast_2d([center_x, center_y, 0])

tests/plate_simulation/models/params_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_plate_options_center(tmp_path):
5353
spacing=10.0,
5454
)
5555
center = params.center(components.survey, components.topography)
56-
assert np.allclose(center, [0.0, 0.0, 20], atol=7e-1)
56+
assert np.allclose(center, [10.0, -10.0, 20], atol=7e-1)
5757

5858

5959
def test_plate_params(tmp_path, caplog):
@@ -66,8 +66,6 @@ def test_plate_params(tmp_path, caplog):
6666
strike_length=1500.0,
6767
dip_length=400.0,
6868
width=20.0,
69-
easting=10.0,
70-
northing=10.0,
7169
elevation=100.0,
7270
direction=0.0,
7371
dip=90.0,

tests/run_tests/driver_ground_tem_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
# To test the full run and validate the inversion.
4444
# Move this file out of the test directory and run.
4545

46-
target_run = {"data_norm": 7.547547820042408e-07, "phi_d": 23, "phi_m": 6310}
46+
target_run = {"data_norm": 7.508983742457165e-07, "phi_d": 36.2, "phi_m": 9880}
4747

4848

4949
def test_tiling_ground_tem(

tests/run_tests/driver_joint_surveys_test.py

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

57-
target_run = {"data_norm": 0.6438691880248415, "phi_d": 1560, "phi_m": 141}
57+
target_run = {"data_norm": 0.5406566758729657, "phi_d": 1740, "phi_m": 137}
5858

5959

6060
def test_joint_surveys_fwr_run(
@@ -214,7 +214,7 @@ def test_joint_surveys_inv_run(
214214
# The rescaling is done evenly on the two tiles for both surveys
215215
np.testing.assert_allclose(
216216
driver.data_misfit.multipliers,
217-
[1.0, 1.0, 0.6673, 0.6673],
217+
[1.0, 1.0, 0.9440, 0.9440],
218218
atol=1e-3,
219219
)
220220

0 commit comments

Comments
 (0)