File tree Expand file tree Collapse file tree
simpeg_drivers-assets/uijson
simpeg_drivers/plate_simulation/sweep
tests/plate_simulation/runtest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" : " " ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 88# '
99# '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
1010
11- import os
1211
1312from geoh5py import Workspace
1413from geoh5py .groups import SimPEGGroup
@@ -72,8 +71,7 @@ def setup_plate_sweep(workspace) -> SimPEGGroup:
7271
7372def 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 )
You can’t perform that action at this time.
0 commit comments