Skip to content

Commit 18b50ed

Browse files
committed
return value
1 parent 117acd6 commit 18b50ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

OMPython/ModelicaSystem.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,8 @@ def parse_om_version(self, version: str) -> tuple[int, int, int]:
10251025
match = re.search(r"v?(\d+)\.(\d+)\.(\d+)", version)
10261026
if not match:
10271027
raise ValueError(f"Version not found in: {version}")
1028-
return tuple(map(int, match.groups()))
1028+
major, minor, patch = map(int, match.groups())
1029+
return major, minor, patch
10291030

10301031
def simulate_cmd(
10311032
self,
@@ -1073,7 +1074,7 @@ def simulate_cmd(
10731074
if self._override_variables or self._simulate_options_override:
10741075
override_file = result_file.parent / f"{result_file.stem}_override.txt"
10751076

1076-
# simulation options are not added to override file anymore
1077+
# simulation options are not read from override file from version > 1.25.0,
10771078
# pass them to simulation executable directly as individual arguments
10781079
# see https://github.com/OpenModelica/OpenModelica/pull/14813
10791080
version = self._session.sendExpression("getVersion()", parsed=True)

0 commit comments

Comments
 (0)