Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
(E002) prepare restructure
[ModelicaSystemCmd] add missing docstring

[OMCSession] spelling fixes

[OMCSessionCmd] add warning about depreciated class

[OMCSessionABC] remove duplicated code; see OMSessionABC

[OMSessionRunnerABC] define class

[OMCSessionZMQ] call super()__init__()

[OMCPath] fix forward dependency on OMCSessionLocal

[OMSessionException] rename from OMCSessionException

[__init__] fix imports
  • Loading branch information
syntron committed May 11, 2026
commit 71c74f26717e2c8f87f548d9733a055f2238d334
8 changes: 5 additions & 3 deletions OMPython/ModelicaSystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
ModelExecutionData,
ModelExecutionException,

OMCSessionException,
OMSessionException,
OMCSessionLocal,

OMPathABC,
Expand Down Expand Up @@ -1688,7 +1688,7 @@ def sendExpression(self, expr: str, parsed: bool = True) -> Any:
"""
try:
retval = self._session.sendExpression(expr=expr, parsed=parsed)
except OMCSessionException as ex:
except OMSessionException as ex:
raise ModelicaSystemError(f"Error executing {repr(expr)}: {ex}") from ex

logger.debug(f"Result of executing {repr(expr)}: {textwrap.shorten(repr(retval), width=100)}")
Expand Down Expand Up @@ -2829,7 +2829,9 @@ def _prepare_structure_parameters(


class ModelicaSystemCmd(ModelExecutionCmd):
# TODO: docstring
"""
Compatibility class; in the new version it is renamed as MOdelExecutionCmd.
"""

def __init__(
self,
Expand Down
Loading
Loading