Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2,694 changes: 21 additions & 2,673 deletions OMPython/ModelicaSystem.py

Large diffs are not rendered by default.

1,923 changes: 35 additions & 1,888 deletions OMPython/OMCSession.py

Large diffs are not rendered by default.

110 changes: 67 additions & 43 deletions OMPython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,48 +6,67 @@
```
import OMPython
omc = OMPython.OMCSessionLocal()
omc.sendExpression("command")
omc.sendExpression("getVersion()")
```

"""

from OMPython.ModelicaSystem import (
LinearizationResult,
ModelicaSystem,
ModelicaSystemOMC,
from OMPython.model_execution import (
ModelExecutionCmd,
ModelicaSystemDoE,
ModelicaDoEOMC,
ModelicaSystemError,
ModelicaSystemRunner,
ModelicaDoERunner,

doe_get_solutions,

ModelicaSystemCmd,
ModelExecutionData,
ModelExecutionException,
)
from OMPython.OMCSession import (
from OMPython.om_session_abc import (
OMPathABC,
OMSessionABC,
OMSessionException,
)
from OMPython.om_session_omc import (
OMCPath,

OMSessionRunner,

OMCSessionABC,

ModelExecutionData,
ModelExecutionException,

OMCSessionCmd,
OMCSessionDocker,
OMCSessionDockerContainer,
OMCSessionException,
OMCSessionLocal,
OMCSessionPort,

OMCSessionWSL,
)
from OMPython.om_session_runner import (
OMPathRunnerBash,
OMPathRunnerLocal,
OMSessionRunner,
)
from OMPython.modelica_system_abc import (
LinearizationResult,
ModelicaSystemABC,
ModelicaSystemError,
)
from OMPython.modelica_system_omc import (
ModelicaSystemOMC,
)
from OMPython.modelica_system_runner import (
ModelicaSystemRunner,
)
from OMPython.modelica_doe_abc import (
ModelicaDoEABC,
)
from OMPython.modelica_doe_omc import (
doe_get_solutions,

OMCSessionWSL,
ModelicaDoEOMC,
)
from OMPython.modelica_doe_runner import (
ModelicaDoERunner,
)

# the imports below are compatibility functionality (OMPython v4.0.0)
from OMPython.ModelicaSystem import (
ModelicaSystem,
ModelicaSystemCmd,
ModelicaSystemDoE,
)
from OMPython.OMCSession import (
OMCSessionCmd,
OMCSessionException,
OMCSessionZMQ,

OMCProcessLocal,
Expand All @@ -58,42 +77,47 @@

# global names imported if import 'from OMPython import *' is used
__all__ = [
'doe_get_solutions',

'LinearizationResult',

'ModelExecutionCmd',
'ModelExecutionData',
'ModelExecutionException',

'ModelicaSystem',
'ModelicaSystemOMC',
'ModelicaSystemCmd',
'ModelExecutionCmd',
'ModelicaSystemDoE',
'ModelicaDoEABC',
'ModelicaDoEOMC',
'ModelicaDoERunner',
'ModelicaSystemABC',
'ModelicaSystemDoE',
'ModelicaSystemError',

'ModelicaSystemOMC',
'ModelicaSystemRunner',
'ModelicaDoERunner',

'OMPathABC',
'OMCPath',

'OMSessionRunner',
'OMSessionABC',
'OMSessionException',

'OMCPath',
'OMCSessionABC',

'doe_get_solutions',

'OMCSessionCmd',
'OMCSessionDocker',
'OMCSessionDockerContainer',
'OMCSessionException',
'OMCSessionPort',
'OMCSessionLocal',
'OMCSessionPort',
'OMCSessionWSL',

'OMPathRunnerBash',
'OMPathRunnerLocal',
'OMSessionRunner',

'ModelicaSystemCmd',
'ModelicaSystem',

'OMCSessionABC',
'OMCSessionCmd',

'OMCSessionException',

'OMCSessionWSL',
'OMCSessionZMQ',

'OMCProcessLocal',
Expand Down
Loading
Loading