Skip to content

Commit d2ec63d

Browse files
committed
[ModelicaSystem.linearize] remove old check / use of file in current dir
1 parent 59be6a3 commit d2ec63d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

OMPython/ModelicaSystem.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,10 +1481,6 @@ def linearize(self, lintime: Optional[float] = None, simflags: Optional[str] = N
14811481
if not linear_file.exists():
14821482
raise ModelicaSystemError(f"Linearization failed: {linear_file} not found!")
14831483

1484-
# support older openmodelica versions before OpenModelica v1.16.2 where linearize() generates "linear_model_name.mo" file
1485-
if not linear_file.exists():
1486-
linear_file = pathlib.Path(f'linear_{self._model_name}.py')
1487-
14881484
# extract data from the python file with the linearized model using the ast module - this allows to get the
14891485
# needed information without executing the created code
14901486
linear_data = {}

0 commit comments

Comments
 (0)