@@ -388,7 +388,7 @@ def __init__(
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
390390 self ._has_inputs = False # for model with input quantity
391- self ._simulationFlag = False # if the model is simulated?
391+ self ._simulated = False # True if the model has already been simulated
392392 self ._csvFile : Optional [pathlib .Path ] = None # for storing inputs condition
393393 self ._resultfile : Optional [pathlib .Path ] = None # for storing result file
394394 self ._variableFilter = variableFilter
@@ -639,7 +639,7 @@ def getContinuous(self, names: Optional[str | list[str]] = None):
639639 >>> mod.getOutputs(["y","x"])
640640 [np.float64(-0.24), np.float64(0.68)]
641641 """
642- if not self ._simulationFlag :
642+ if not self ._simulated :
643643 if names is None :
644644 return self ._continuous
645645
@@ -779,7 +779,7 @@ def getOutputs(self, names: Optional[str | list[str]] = None): # 7
779779 >>> mod.getOutputs(["out1","out2"])
780780 [np.float64(-0.1234), np.float64(2.1)]
781781 """
782- if not self ._simulationFlag :
782+ if not self ._simulated :
783783 if names is None :
784784 return self ._outputs
785785 elif isinstance (names , str ):
@@ -1000,7 +1000,7 @@ def simulate(self,
10001000
10011001 logger .warning (f"Return code = { returncode } but result file exists!" )
10021002
1003- self ._simulationFlag = True
1003+ self ._simulated = True
10041004
10051005 def getSolutions (self , varList : Optional [str | list [str ]] = None , resultfile : Optional [str ] = None ) -> tuple [str ] | np .ndarray :
10061006 """Extract simulation results from a result data file.
@@ -1438,7 +1438,7 @@ def load_module_from_path(module_name, file_path):
14381438 if returncode != 0 :
14391439 raise ModelicaSystemError (f"Linearize failed with return code: { returncode } " )
14401440
1441- self ._simulationFlag = True
1441+ self ._simulated = True
14421442
14431443 # code to get the matrix and linear inputs, outputs and states
14441444 linearFile = self ._tempdir / "linearized_model.py"
0 commit comments