Skip to content

Commit b33005e

Browse files
committed
??? cleanup merge
1 parent 110b478 commit b33005e

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ def __init__(
391391
self._session = OMCSessionLocal(omhome=omhome)
392392

393393
# get OpenModelica version
394-
self._version = self._session.get_version()
394+
version_str = self._session.get_version()
395+
self._version = self.parse_om_version(version=version_str)
395396
# set commandLineOptions using default values or the user defined list
396397
if command_line_options is None:
397398
# set default command line options to improve the performance of linearization and to avoid recompilation if
@@ -1212,7 +1213,7 @@ def parse_om_version(version: str) -> tuple[int, int, int]:
12121213

12131214
def _process_override_data(
12141215
self,
1215-
om_cmd: ModelicaSystemCmd,
1216+
om_cmd: ModelExecutionCmd,
12161217
override_file: OMCPath,
12171218
override_var: dict[str, str],
12181219
override_sim: dict[str, str],

OMPython/OMCSession.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,6 @@ def _tempdir(tempdir_base: OMCPath) -> OMCPath:
859859

860860
return tempdir
861861

862-
863862
def execute(self, command: str):
864863
warnings.warn(
865864
message="This function is depreciated and will be removed in future versions; "

OMPython/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
OMCSessionException,
3131
OMCSessionLocal,
3232
OMCSessionPort,
33-
OMCSessionRunData,
3433
OMCSessionWSL,
3534
OMCSessionZMQ,
3635
)

0 commit comments

Comments
 (0)