Skip to content

Commit c30b008

Browse files
committed
(F001) cleanup after restructure
[README.md] small updates [__init__] small updates
1 parent cfb42df commit c30b008

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

OMPython/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
```
77
import OMPython
88
omc = OMPython.OMCSessionLocal()
9-
omc.sendExpression("command")
9+
omc.sendExpression("getVersion()")
1010
```
1111
1212
"""
@@ -58,15 +58,16 @@
5858
ModelicaDoERunner,
5959
)
6060

61+
# the imports below are compatibility functionality (OMPython v4.0.0)
6162
from OMPython.ModelicaSystem import (
6263
ModelicaSystem,
63-
ModelicaSystemDoE,
6464
ModelicaSystemCmd,
65+
ModelicaSystemDoE,
6566
)
6667
from OMPython.OMCSession import (
6768
OMCSessionCmd,
68-
OMCSessionZMQ,
6969
OMCSessionException,
70+
OMCSessionZMQ,
7071

7172
OMCProcessLocal,
7273
OMCProcessPort,

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ OMPython is a Python interface that uses ZeroMQ to communicate with OpenModelica
88

99
## Dependencies
1010

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

1414
## Installation
1515

@@ -49,8 +49,8 @@ help(OMPython)
4949
```
5050

5151
```python
52-
from OMPython import OMCSessionLocal
53-
omc = OMCSessionLocal()
52+
import OMPython
53+
omc = OMPython.OMCSessionLocal()
5454
omc.sendExpression("getVersion()")
5555
```
5656

0 commit comments

Comments
 (0)