Skip to content

Commit 674bb36

Browse files
committed
(F001) cleanup after restructure
[README.md] small updates [__init__] small updates
1 parent 129d646 commit 674bb36

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

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
@@ -7,8 +7,8 @@ communicate with OpenModelica.
77

88
## Dependencies
99

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

1313
## Installation
1414

@@ -39,8 +39,8 @@ help(OMPython)
3939
```
4040

4141
```python
42-
from OMPython import OMCSessionLocal
43-
omc = OMCSessionLocal()
42+
import OMPython
43+
omc = OMPython.OMCSessionLocal()
4444
omc.sendExpression("getVersion()")
4545
```
4646

0 commit comments

Comments
 (0)