@@ -360,7 +360,7 @@ def __init__(
360360 self ._simulate_options : dict [str , str ] = {}
361361 self ._override_variables : dict [str , str ] = {}
362362 self ._simulate_options_override : dict [str , str ] = {}
363- self ._linearOptions = {'startTime' : 0.0 , 'stopTime' : 1.0 , 'stepSize' : 0.002 , 'tolerance' : 1e-8 }
363+ self ._linearization_options = {'startTime' : 0.0 , 'stopTime' : 1.0 , 'stepSize' : 0.002 , 'tolerance' : 1e-8 }
364364 self ._optimizeOptions = {'startTime' : 0.0 , 'stopTime' : 1.0 , 'numberOfIntervals' : 500 , 'stepSize' : 0.002 ,
365365 'tolerance' : 1e-8 }
366366 self ._linearinputs : list [str ] = [] # linearization input list
@@ -872,11 +872,11 @@ def getLinearizationOptions(self, names: Optional[str | list[str]] = None) -> di
872872 [1e-08, 1.0]
873873 """
874874 if names is None :
875- return self ._linearOptions
875+ return self ._linearization_options
876876 elif isinstance (names , str ):
877- return [self ._linearOptions [names ]]
877+ return [self ._linearization_options [names ]]
878878 elif isinstance (names , list ):
879- return [self ._linearOptions [x ] for x in names ]
879+ return [self ._linearization_options [x ] for x in names ]
880880
881881 raise ModelicaSystemError ("Unhandled input for getLinearizationOptions()" )
882882
@@ -1168,7 +1168,7 @@ def setLinearizationOptions(self, linearizationOptions): # 18
11681168 >>> setLinearizationOptions("Name=value")
11691169 >>> setLinearizationOptions(["Name1=value1","Name2=value2"])
11701170 """
1171- return self ._setMethodHelper (linearizationOptions , self ._linearOptions , "Linearization-option" , None )
1171+ return self ._setMethodHelper (linearizationOptions , self ._linearization_options , "Linearization-option" , None )
11721172
11731173 def setOptimizationOptions (self , optimizationOptions ): # 17
11741174 """
@@ -1409,7 +1409,7 @@ def load_module_from_path(module_name, file_path):
14091409 with open (file = overrideLinearFile , mode = "w" , encoding = "utf-8" ) as fh :
14101410 for key , value in self ._override_variables .items ():
14111411 fh .write (f"{ key } ={ value } \n " )
1412- for key , value in self ._linearOptions .items ():
1412+ for key , value in self ._linearization_options .items ():
14131413 fh .write (f"{ key } ={ value } \n " )
14141414
14151415 om_cmd .arg_set (key = "overrideFile" , val = overrideLinearFile .as_posix ())
@@ -1425,7 +1425,7 @@ def load_module_from_path(module_name, file_path):
14251425 self ._csvFile = self ._createCSVData ()
14261426 om_cmd .arg_set (key = "csvInput" , val = self ._csvFile .as_posix ())
14271427
1428- om_cmd .arg_set (key = "l" , val = str (lintime or self ._linearOptions ["stopTime" ]))
1428+ om_cmd .arg_set (key = "l" , val = str (lintime or self ._linearization_options ["stopTime" ]))
14291429
14301430 # allow runtime simulation flags from user input
14311431 if simflags is not None :
0 commit comments