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
7 changes: 4 additions & 3 deletions OMPython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
```
import OMPython
omc = OMPython.OMCSessionLocal()
omc.sendExpression("command")
omc.sendExpression("getVersion()")
```

"""
Expand Down Expand Up @@ -58,15 +58,16 @@
ModelicaDoERunner,
)

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

OMCProcessLocal,
OMCProcessPort,
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ OMPython is a Python interface that uses ZeroMQ to communicate with OpenModelica

## Dependencies

- Python 3.x supported
- PyZMQ is required
- Python >= 3.10 supported with complete functionality for Python >= 3.12
- Additional packages: numpy, psutil, pyparsing and pyzmq

## Installation

Expand Down Expand Up @@ -49,8 +49,8 @@ help(OMPython)
```

```python
from OMPython import OMCSessionLocal
omc = OMCSessionLocal()
import OMPython
omc = OMPython.OMCSessionLocal()
omc.sendExpression("getVersion()")
```

Expand Down
Loading