Skip to content

Commit c38c019

Browse files
committed
Rename _linearinputs to _linearized_inputs
1 parent eeadc3c commit c38c019

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def __init__(
363363
self._linearization_options = {'startTime': 0.0, 'stopTime': 1.0, 'stepSize': 0.002, 'tolerance': 1e-8}
364364
self._optimization_options = {'startTime': 0.0, 'stopTime': 1.0, 'numberOfIntervals': 500, 'stepSize': 0.002,
365365
'tolerance': 1e-8}
366-
self._linearinputs: list[str] = [] # linearization input list
366+
self._linearized_inputs: list[str] = [] # linearization input list
367367
self._linearoutputs: list[str] = [] # linearization output list
368368
self._linearstates: list[str] = [] # linearization states list
369369

@@ -1459,7 +1459,7 @@ def load_module_from_path(module_name, file_path):
14591459

14601460
result = module.linearized_model()
14611461
(n, m, p, x0, u0, A, B, C, D, stateVars, inputVars, outputVars) = result
1462-
self._linearinputs = inputVars
1462+
self._linearized_inputs = inputVars
14631463
self._linearoutputs = outputVars
14641464
self._linearstates = stateVars
14651465
return LinearizationResult(n, m, p, A, B, C, D, x0, u0, stateVars,
@@ -1469,7 +1469,7 @@ def load_module_from_path(module_name, file_path):
14691469

14701470
def getLinearInputs(self) -> list[str]:
14711471
"""Get names of input variables of the linearized model."""
1472-
return self._linearinputs
1472+
return self._linearized_inputs
14731473

14741474
def getLinearOutputs(self) -> list[str]:
14751475
"""Get names of output variables of the linearized model."""

0 commit comments

Comments
 (0)