From a6f8ea82a1e975732d5e88584dcbaeb70dc35211 Mon Sep 17 00:00:00 2001 From: benjamink Date: Fri, 8 May 2026 14:49:01 -0700 Subject: [PATCH 1/3] accept drape model in ui.json/options --- simpeg_drivers-assets/uijson/sensitivity_cutoff.ui.json | 3 ++- .../depth_of_investigation/sensitivity_cutoff/options.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/simpeg_drivers-assets/uijson/sensitivity_cutoff.ui.json b/simpeg_drivers-assets/uijson/sensitivity_cutoff.ui.json index d98de32e..a3c108ec 100644 --- a/simpeg_drivers-assets/uijson/sensitivity_cutoff.ui.json +++ b/simpeg_drivers-assets/uijson/sensitivity_cutoff.ui.json @@ -11,7 +11,8 @@ "mesh": { "main": true, "meshType": [ - "4ea87376-3ece-438b-bf12-3479733ded46" + "4ea87376-3ece-438b-bf12-3479733ded46", + "C94968EA-CF7D-11EB-B8BC-0242AC130003" ], "label": "Mesh", "value": "" diff --git a/simpeg_drivers/depth_of_investigation/sensitivity_cutoff/options.py b/simpeg_drivers/depth_of_investigation/sensitivity_cutoff/options.py index f70cec3e..3b81212a 100644 --- a/simpeg_drivers/depth_of_investigation/sensitivity_cutoff/options.py +++ b/simpeg_drivers/depth_of_investigation/sensitivity_cutoff/options.py @@ -13,7 +13,7 @@ from geoapps_utils.base import Options from geoh5py.data import FloatData -from geoh5py.objects import Octree +from geoh5py.objects import DrapeModel, Octree from pydantic import field_validator from simpeg_drivers import assets_path @@ -41,7 +41,7 @@ class SensitivityCutoffOptions(Options): run_command: str = "simpeg_drivers.depth_of_investigation.sensitivity_cutoff.driver" conda_environment: str = "simpeg_drivers" - mesh: Octree + mesh: Octree | DrapeModel sensitivity_model: FloatData sensitivity_cutoff: float = 0.1 cutoff_method: str = "percentile" From 75401bdbca4509bbc77a40583812b5067ee51e5e Mon Sep 17 00:00:00 2001 From: benjamink Date: Fri, 8 May 2026 14:59:57 -0700 Subject: [PATCH 2/3] update docstring --- .../depth_of_investigation/sensitivity_cutoff/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpeg_drivers/depth_of_investigation/sensitivity_cutoff/options.py b/simpeg_drivers/depth_of_investigation/sensitivity_cutoff/options.py index 3b81212a..021ea0a4 100644 --- a/simpeg_drivers/depth_of_investigation/sensitivity_cutoff/options.py +++ b/simpeg_drivers/depth_of_investigation/sensitivity_cutoff/options.py @@ -23,7 +23,7 @@ class SensitivityCutoffOptions(Options): """ Sensitivity cutoff parameters for depth of investigation studies. - :param mesh: Octree mesh containing saved sensitivities. + :param mesh: Octree mesh or DrapeModel containing saved sensitivities. :param sensitivity_model: Saved row-sum-squared sensitivity data. :param sensitivity_cutoff: Sensitivity percentage below which the model's influence to the data is considered negligible. From 6470349b5d99525907cbddadb9178e8aee40a206 Mon Sep 17 00:00:00 2001 From: benk-mira <81254271+benk-mira@users.noreply.github.com> Date: Fri, 8 May 2026 15:02:47 -0700 Subject: [PATCH 3/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- simpeg_drivers-assets/uijson/sensitivity_cutoff.ui.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simpeg_drivers-assets/uijson/sensitivity_cutoff.ui.json b/simpeg_drivers-assets/uijson/sensitivity_cutoff.ui.json index a3c108ec..c5dbd5f1 100644 --- a/simpeg_drivers-assets/uijson/sensitivity_cutoff.ui.json +++ b/simpeg_drivers-assets/uijson/sensitivity_cutoff.ui.json @@ -11,8 +11,8 @@ "mesh": { "main": true, "meshType": [ - "4ea87376-3ece-438b-bf12-3479733ded46", - "C94968EA-CF7D-11EB-B8BC-0242AC130003" + "{4ea87376-3ece-438b-bf12-3479733ded46}", + "{c94968ea-cf7d-11eb-b8bc-0242ac130003}" ], "label": "Mesh", "value": ""