@@ -104,12 +104,12 @@ def simulate(
104104 self .set_param_dict (parameter_dict )
105105
106106 if simulation_options is not None :
107- if x is not None and 'x' in simulation_options :
107+ if x is not None and "x" in simulation_options :
108108 warnings .warn (
109109 "Boundary file 'x' specified both in simulation_options and as a "
110110 "direct parameter. The 'x' provided in simulate() will be used." ,
111111 UserWarning ,
112- stacklevel = 2
112+ stacklevel = 2 ,
113113 )
114114
115115 self ._set_simulation_options (simulation_options )
@@ -180,20 +180,20 @@ def get_parameters(self):
180180
181181 def _set_simulation_options (self , simulation_options ):
182182 standard_options = {
183- ' startTime' : simulation_options .get (' startTime' ),
184- ' stopTime' : simulation_options .get (' stopTime' ),
185- ' stepSize' : simulation_options .get (' stepSize' ),
186- ' tolerance' : simulation_options .get (' tolerance' ),
187- ' solver' : simulation_options .get (' solver' ),
188- ' outputFormat' : simulation_options .get (' outputFormat' )
183+ " startTime" : simulation_options .get (" startTime" ),
184+ " stopTime" : simulation_options .get (" stopTime" ),
185+ " stepSize" : simulation_options .get (" stepSize" ),
186+ " tolerance" : simulation_options .get (" tolerance" ),
187+ " solver" : simulation_options .get (" solver" ),
188+ " outputFormat" : simulation_options .get (" outputFormat" ),
189189 }
190190
191- options = [f' { k } ={ v } ' for k , v in standard_options .items () if v is not None ]
191+ options = [f" { k } ={ v } " for k , v in standard_options .items () if v is not None ]
192192 self .model .setSimulationOptions (options )
193193 self .simulation_options = simulation_options
194194
195- if 'x' in simulation_options :
196- self ._set_x (simulation_options ['x' ])
195+ if "x" in simulation_options :
196+ self ._set_x (simulation_options ["x" ])
197197
198198 def _set_x (self , df : pd .DataFrame ):
199199 """Sets the input data for the simulation and updates the corresponding file."""
@@ -255,4 +255,3 @@ def library_contents(library_path):
255255 for file in files :
256256 file_path = os .path .join (root , file )
257257 print (file_path )
258-
0 commit comments