File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed 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 @@ -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()
4444omc.sendExpression(" getVersion()" )
4545```
4646
You can’t perform that action at this time.
0 commit comments