@@ -387,7 +387,7 @@ def __init__(
387387 self ._lmodel = lmodel # may be needed if model is derived from other model
388388 self ._model_name = modelName # Model class name
389389 self ._file_name = pathlib .Path (fileName ).resolve () if fileName is not None else None # Model file/package name
390- self ._inputFlag = False # for model with input quantity
390+ self ._has_inputs = False # for model with input quantity
391391 self ._simulationFlag = False # if the model is simulated?
392392 self ._csvFile : Optional [pathlib .Path ] = None # for storing inputs condition
393393 self ._resultfile : Optional [pathlib .Path ] = None # for storing result file
@@ -968,7 +968,7 @@ def simulate(self,
968968
969969 om_cmd .arg_set (key = "overrideFile" , val = overrideFile .as_posix ())
970970
971- if self ._inputFlag : # if model has input quantities
971+ if self ._has_inputs : # if model has input quantities
972972 for i in self ._inputs :
973973 val = self ._inputs [i ]
974974 if val is None :
@@ -1199,7 +1199,7 @@ def setInputs(self, name): # 15
11991199 elif isinstance (tmpvalue , list ):
12001200 self ._checkValidInputs (tmpvalue )
12011201 self ._inputs [value [0 ]] = tmpvalue
1202- self ._inputFlag = True
1202+ self ._has_inputs = True
12031203 else :
12041204 raise ModelicaSystemError (f"{ value [0 ]} is not an input" )
12051205 elif isinstance (name , list ):
@@ -1214,7 +1214,7 @@ def setInputs(self, name): # 15
12141214 elif isinstance (tmpvalue , list ):
12151215 self ._checkValidInputs (tmpvalue )
12161216 self ._inputs [value [0 ]] = tmpvalue
1217- self ._inputFlag = True
1217+ self ._has_inputs = True
12181218 else :
12191219 raise ModelicaSystemError (f"{ value [0 ]} is not an input!" )
12201220
@@ -1414,7 +1414,7 @@ def load_module_from_path(module_name, file_path):
14141414
14151415 om_cmd .arg_set (key = "overrideFile" , val = overrideLinearFile .as_posix ())
14161416
1417- if self ._inputFlag :
1417+ if self ._has_inputs :
14181418 nameVal = self .getInputs ()
14191419 for n in nameVal :
14201420 tupleList = nameVal .get (n )
0 commit comments