diff --git a/simpeg_drivers/electromagnetics/base_1d_driver.py b/simpeg_drivers/electromagnetics/base_1d_driver.py index 834cdff1..35c57466 100644 --- a/simpeg_drivers/electromagnetics/base_1d_driver.py +++ b/simpeg_drivers/electromagnetics/base_1d_driver.py @@ -20,6 +20,7 @@ from discretize.utils import mesh_utils from geoapps_utils.utils.locations import topo_drape_elevation from geoh5py import Workspace +from geoh5py.objects import Surface from geoh5py.shared.merging.drape_model import DrapeModelMerger from geoh5py.ui_json.ui_json import fetch_active_workspace from numpy import ndarray @@ -48,6 +49,9 @@ def __init__(self, workspace: Workspace, **kwargs): self.topo_z_drape = topo_drape_elevation( self.params.data_object.vertices, self.inversion_topography.locations, + triangulation=self.params.active_cells.topography_object.cells + if isinstance(self.params.active_cells.topography_object, Surface) + else None, ) @property diff --git a/tests/run_tests/driver_airborne_fem_1d_test.py b/tests/run_tests/driver_airborne_fem_1d_test.py index 1290754f..3a4e7b31 100644 --- a/tests/run_tests/driver_airborne_fem_1d_test.py +++ b/tests/run_tests/driver_airborne_fem_1d_test.py @@ -38,7 +38,7 @@ # To test the full run and validate the inversion. # Move this file out of the test directory and run. -target_run = {"data_norm": 380.3510229653626, "phi_d": 33100, "phi_m": 209} +target_run = {"data_norm": 381.0495293422212, "phi_d": 33400, "phi_m": 198} def test_fem_fwr_1d_run(