File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66```
77import OMPython
88omc = OMPython.OMCSessionLocal()
9- omc.sendExpression("command ")
9+ omc.sendExpression("getVersion() ")
1010```
1111
1212"""
5858 ModelicaDoERunner ,
5959)
6060
61+ # the imports below are compatibility functionality (OMPython v4.0.0)
6162from OMPython .ModelicaSystem import (
6263 ModelicaSystem ,
63- ModelicaSystemDoE ,
6464 ModelicaSystemCmd ,
65+ ModelicaSystemDoE ,
6566)
6667from OMPython .OMCSession import (
6768 OMCSessionCmd ,
68- OMCSessionZMQ ,
6969 OMCSessionException ,
70+ OMCSessionZMQ ,
7071
7172 OMCProcessLocal ,
7273 OMCProcessPort ,
Original file line number Diff line number Diff 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()
5454omc.sendExpression(" getVersion()" )
5555```
5656
You can’t perform that action at this time.
0 commit comments