Skip to content

Commit 191cd59

Browse files
committed
[ModelicaSystem.linearize] remove old check / use of file in current dir
1 parent 4c9f0ca commit 191cd59

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
@@ -1490,10 +1490,6 @@ def linearize(self, lintime: Optional[float] = None, simflags: Optional[str] = N
14901490
if not linear_file.exists():
14911491
raise ModelicaSystemError(f"Linearization failed: {linear_file} not found!")
14921492

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

0 commit comments

Comments
 (0)