Skip to content

Commit ade914b

Browse files
committed
Fix 1D test
1 parent 2602adc commit ade914b

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

simpeg_drivers/electromagnetics/frequency_domain_1d/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class FDEM1DForwardOptions(BaseForwardOptions, BaseFDEMOptions, Base1DOptions):
4949
models: ConductivityModelOptions
5050

5151

52-
class FDEM1DInversionOptions(BaseInversionOptions, BaseFDEMOptions, Base1DOptions):
52+
class FDEM1DInversionOptions(BaseFDEMOptions, BaseInversionOptions, Base1DOptions):
5353
"""
5454
Frequency Domain Electromagnetic Inversion options.
5555

simpeg_drivers/utils/synthetics/surveys/frequency_domain/fdem.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222

2323

2424
def generate_fdem_survey(
25-
geoh5: Workspace, x_grid: np.ndarray, y_grid: np.ndarray, z_grid: np.ndarray, name: str = "survey"
25+
geoh5: Workspace,
26+
x_grid: np.ndarray,
27+
y_grid: np.ndarray,
28+
z_grid: np.ndarray,
29+
name: str = "survey",
2630
) -> AirborneFEMReceivers:
2731
"""Create an FDEM survey object from survey grid locations."""
2832

@@ -42,6 +46,7 @@ def generate_fdem_survey(
4246
for part in np.unique(survey.parts):
4347
line = survey.parts == part
4448
delta = np.diff(vertices[line, :], axis=0)
49+
delta[:, 2] = 0
4550
length = np.linalg.norm(delta, axis=1)
4651

4752
if np.any(length <= 0):
@@ -74,7 +79,6 @@ def generate_fdem_survey(
7479
}
7580
)
7681

77-
7882
transmitters.remove_cells(mask_large_connections(transmitters, 200.0))
7983

8084
return survey

tests/run_tests/driver_airborne_fem_1d_test.py

Lines changed: 1 addition & 1 deletion
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": 804.9848595951983, "phi_d": 64500, "phi_m": 717}
44+
target_run = {"data_norm": 804.9849282354428, "phi_d": 58200, "phi_m": 118}
4545

4646

4747
def test_fem_fwr_1d_run(

0 commit comments

Comments
 (0)