Skip to content

Commit edc5a9f

Browse files
authored
Merge pull request #314 from MiraGeoscience/GEOPY-2587
GEOPY-2587: Add dip_direction to list of supported variables by plate_sweep
2 parents 14a2fbf + 9030828 commit edc5a9f

3 files changed

Lines changed: 26 additions & 3 deletions

File tree

simpeg_drivers-assets/uijson/plate_sweep.ui.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,26 @@
193193
"label": "number of samples",
194194
"value": 1
195195
},
196+
"dip_direction_start": {
197+
"main": true,
198+
"group": "Dip Dir",
199+
"groupOptional": true,
200+
"enabled": false,
201+
"label": "starting",
202+
"value": 60.0
203+
},
204+
"dip_direction_stop": {
205+
"main": true,
206+
"group": "Dip Dir",
207+
"label": "ending",
208+
"value": 60.0
209+
},
210+
"dip_direction_count": {
211+
"main": true,
212+
"group": "Dip Dir",
213+
"label": "number of samples",
214+
"value": 1
215+
},
196216
"out_group": {
197217
"label": "SimPEGGroup",
198218
"value": "",

simpeg_drivers/plate_simulation/sweep/uijson.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@ class PlateSweepUIJson(BaseUIJson):
4141
dip_start: FloatForm
4242
dip_stop: FloatForm
4343
dip_count: IntegerForm
44+
dip_direction_start: FloatForm
45+
dip_direction_stop: FloatForm
46+
dip_direction_count: IntegerForm
4447
out_group: GroupForm | None
4548
workdir: StringForm | None

tests/plate_simulation/runtest/sweep_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# '
99
# '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
1010

11-
import os
1211

1312
from geoh5py import Workspace
1413
from geoh5py.groups import SimPEGGroup
@@ -72,8 +71,7 @@ def setup_plate_sweep(workspace) -> SimPEGGroup:
7271

7372
def test_sweep(tmp_path):
7473
workdir = tmp_path / "my_workdir"
75-
os.mkdir(workdir)
76-
assert workdir.exists()
74+
7775
with Workspace.create(tmp_path / "test.geoh5") as ws:
7876
plate_simulation = setup_plate_sweep(ws)
7977

@@ -95,6 +93,8 @@ def test_sweep(tmp_path):
9593
ifile.write_ui_json(name="plate_sweep.ui.json", path=tmp_path)
9694
PlateSweepDriver.start(tmp_path / "plate_sweep.ui.json")
9795

96+
assert workdir.exists()
97+
9898
with Workspace(tmp_path / "test.geoh5"):
9999
ifile = InputFile.read_ui_json(tmp_path / "plate_sweep.ui.json")
100100
ifile.set_data_value("background_count", 3)

0 commit comments

Comments
 (0)