Skip to content

Commit 181a33f

Browse files
committed
Hard wire the topo and re-adjust some targets
1 parent 27d156e commit 181a33f

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

simpeg_drivers/utils/synthetics/meshes/octrees.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def get_base_octree(
4545
mesh_type="TREE",
4646
tree_diagonal_balance=False,
4747
)
48-
mesh = OctreeDriver.refine_tree_from_surface(
48+
mesh = OctreeDriver.refine_tree_from_triangulation(
4949
mesh, topography, levels=refinement, finalize=False
5050
)
5151

@@ -75,7 +75,7 @@ def get_octree_mesh(
7575
:return mesh: The discretize TreeMesh object for computations.
7676
"""
7777

78-
mesh = get_base_octree(survey, topography, cell_size, (0, 1), padding_distance)
78+
mesh = get_base_octree(survey, topography, cell_size, (0, 0, 1), padding_distance)
7979

8080
mesh = OctreeDriver.refine_tree_from_points(
8181
mesh, survey.vertices, levels=refinement, finalize=False

simpeg_drivers/utils/synthetics/topography.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def get_topography_surface(
4040
options.survey.center[1] - height / 2,
4141
options.survey.center[1] + height / 2,
4242
],
43-
n_stations=int(2 * width / (options.survey.width / options.survey.n_stations)),
44-
n_lines=int(2 * height / (options.survey.height / options.survey.n_lines)),
43+
n_stations=64,
44+
n_lines=64,
4545
topography=options.survey.topography,
4646
)
4747

tests/run_tests/driver_app_con_test.py

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

43-
target_run = {"data_norm": 0.01890754287659443, "phi_d": 786, "phi_m": 11500}
43+
target_run = {"data_norm": 0.018661818427023937, "phi_d": 502, "phi_m": 10900}
4444

4545

4646
def test_app_con_fwr_run(

tests/run_tests/driver_dc_test.py

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

41-
target_run = {"data_norm": 0.1434420468146182, "phi_d": 5.27, "phi_m": 231}
41+
target_run = {"data_norm": 0.018661818427023937, "phi_d": 502, "phi_m": 10900}
4242

4343

4444
def test_dc_3d_fwr_run(

tests/run_tests/driver_grav_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
# To test the full run and validate the inversion.
4343
# Move this file out of the test directory and run.
44-
target_run = {"data_norm": 0.002805526927601853, "phi_d": 1.77e-05, "phi_m": 0.023}
44+
target_run = {"data_norm": 0.006241342269481059, "phi_d": 0.0024, "phi_m": 0.17}
4545

4646

4747
def test_gravity_fwr_run(

0 commit comments

Comments
 (0)