From daf2b6009986021a8d2083bf4647bbb59fd8ab9a Mon Sep 17 00:00:00 2001 From: syntron Date: Sat, 14 Feb 2026 11:37:37 +0100 Subject: [PATCH 1/3] (F001) cleanup after restructure [README.md] small updates [__init__] small updates --- OMPython/__init__.py | 7 ++++--- README.md | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/OMPython/__init__.py b/OMPython/__init__.py index 282923a7..78c8959e 100644 --- a/OMPython/__init__.py +++ b/OMPython/__init__.py @@ -6,7 +6,7 @@ ``` import OMPython omc = OMPython.OMCSessionLocal() -omc.sendExpression("command") +omc.sendExpression("getVersion()") ``` """ @@ -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, diff --git a/README.md b/README.md index a9cf3bdc..56730349 100644 --- a/README.md +++ b/README.md @@ -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 @@ -49,8 +49,8 @@ help(OMPython) ``` ```python -from OMPython import OMCSessionLocal -omc = OMCSessionLocal() +import OMPython +omc = OMPython.OMCSessionLocal() omc.sendExpression("getVersion()") ``` From 7e33e598119a188baa9d68048ba14e75ef27c235 Mon Sep 17 00:00:00 2001 From: syntron Date: Sat, 8 Aug 2026 21:06:54 +0200 Subject: [PATCH 2/3] udpate dependency - specify what 3.10 / 3.12 split means --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 56730349..3e85d6f4 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ OMPython is a Python interface that uses ZeroMQ to communicate with OpenModelica ## Dependencies - - Python >= 3.10 supported with complete functionality for Python >= 3.12 + - Python >= 3.10; Python >= 3.12 for `OMPath` functionality (handle file system access via OMC using a `pathlib.Path` compatible abstraction layer) - Additional packages: numpy, psutil, pyparsing and pyzmq ## Installation From 24fbf4d085f82947aec4bdff58a300bbaabcaa13 Mon Sep 17 00:00:00 2001 From: syntron Date: Sun, 9 Aug 2026 14:40:40 +0200 Subject: [PATCH 3/3] Trigger rerun