File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ def _parse_args(m):
41
41
domain = str ,
42
42
default = None ,
43
43
argparse = True )
44
+ cfg .add_to_config (name = "write_solution" ,
45
+ description = "send write solution output to a csv, an npv file and a directory with names based on the module" ,
46
+ domain = bool ,
47
+ default = False )
44
48
cfg .popular_args ()
45
49
cfg .two_sided_args ()
46
50
cfg .ph_args ()
@@ -138,10 +142,10 @@ def _parse_args(m):
138
142
wheel = WheelSpinner (hub_dict , list_of_spoke_dict )
139
143
wheel .spin ()
140
144
141
- write_solution = False
145
+ write_solution = cfg . write_solution
142
146
if write_solution :
143
- wheel .write_first_stage_solution ('farmer_plant .csv' )
144
- wheel .write_first_stage_solution ('farmer_cyl_nonants .npy' ,
147
+ wheel .write_first_stage_solution (f' { module_fname } .csv' )
148
+ wheel .write_first_stage_solution (f' { module_fname } .npy' ,
145
149
first_stage_solution_writer = sputils .first_stage_nonant_npy_serializer )
146
- wheel .write_tree_solution ('farmer_full_solution ' )
150
+ wheel .write_tree_solution (f' { module_fname } _solution ' )
147
151
You can’t perform that action at this time.
0 commit comments