Skip to content

ModelicaSystemCMD - use OMCPath #324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 67 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
8d19d26
[ModelicaSystem] add type hints for set*() functions and rename argum…
syntron Jun 23, 2025
9ac6a0e
[ModelicaSystem] add _prepare_inputdata()
syntron Jun 23, 2025
980ac33
[ModelicaSystem] update _set_method_helper()
syntron Jun 23, 2025
7c24f10
[ModelicaSystem] improve definition of _prepare_inputdata()
syntron Jun 23, 2025
b864a6c
[ModelicaSystem] rename _prepare_inputdata() => _prepare_input_data()
syntron Jun 23, 2025
3f180a6
[ModelicaSystem] update setInput()
syntron Jun 23, 2025
55051d9
update tests - use new dict based input for set*() methods
syntron Jun 23, 2025
3d8b83a
[ModelicaSystem] add type hint for return value of isParameterChangea…
syntron Jun 23, 2025
1b5917c
[ModelicaSystem] fix type hint for _prepare_input_data() - use dict[s…
syntron Jun 23, 2025
b5766f4
[ModelicaSystem] setInput() - handly input data as list of tuples
syntron Jun 23, 2025
9ef9d69
update tests - use new dict based input for setInput() method
syntron Jun 23, 2025
2fc67b9
[test_linearization] fix setInput() call
syntron Jun 24, 2025
bbd8740
[ModelicaSystem] simplify _set_method_helper()
syntron Jun 26, 2025
675a648
[ModelicaSystem] improve setInputs() - reduce spaces / cleanup
syntron Jun 26, 2025
9fcd39a
[ModelicaSystem] fix rebase fallout
syntron Jul 7, 2025
92651c5
[ModelicaSystem] fix rebase fallout 2
syntron Jul 7, 2025
71aa67b
[OMCPath] add class
syntron Jun 28, 2025
28585c7
[OMCPath] add implementation using OMC via sendExpression()
syntron Jun 27, 2025
3ce71b9
[OMCPath] add pytest (only docker at the moment)
syntron Jun 28, 2025
e452c98
[OMCPath] TODO items
syntron Jun 28, 2025
a262189
[test_OMCPath] mypy fix
syntron Jul 2, 2025
70a9c65
[test_OMCPath] fix end of file
syntron Jul 2, 2025
9240ff6
[test_OMCPath] define test using OMCSessionZMQ() locally
syntron Jul 3, 2025
7af3eb7
add TODO - need to check Python versions
syntron Jul 6, 2025
d5445c6
[test_OMCPath] activate docker based on test_docker
syntron Jul 6, 2025
4c9f0ca
[ModelicaSystem.linearize] do not execute python file but use ast to …
syntron Jul 9, 2025
191cd59
[ModelicaSystem.linearize] remove old check / use of file in current dir
syntron Jul 9, 2025
2802d9f
[ModelicaSystem.linearize] fix mypy
syntron Jul 10, 2025
d695899
[ModelicaSystem] remove _has_inputs - is defined by _inputs empty or not
syntron Jul 7, 2025
4fa05f1
[test_ModelicaSystem] cleanup
syntron Jul 7, 2025
ab0beae
[ModelicaSystem] add spelling fix (fox codespell)
syntron Jul 11, 2025
f10e4e0
[ModelicaSystem] update handling of xml_file
syntron Jul 9, 2025
4ed4bc9
[ModelicaSystem] replace ET.parse() with ET.ElementTree(ET.fromstring())
syntron Jul 9, 2025
111326f
[ModelicaSystem._xmlparse] mypy fixes & cleanup
syntron Jul 10, 2025
f958964
[ModelicaSystem] remove class variable _xml_file
syntron Jul 10, 2025
aa74b36
[OMCPath] add more functionality and docstrings
syntron Jul 11, 2025
89cf543
[OMCPath] remove TODO entries
syntron Jul 11, 2025
8e1745c
[OMCPath] define limited compatibility for Python < 3.12
syntron Jul 11, 2025
e793a93
[OMCSEssionZMQ] use OMCpath
syntron Jul 11, 2025
0ceb2bf
[OMCSessionZMQ] create a tempdir using omcpath_tempdir()
syntron Jul 11, 2025
43288dc
[OMCPath] fix mypy
syntron Jul 11, 2025
3029138
[OMCPath] add warning message for Python < 3.12
syntron Jul 11, 2025
a5f2ad6
[OMCPath] try to make mypy happy ...
syntron Jul 11, 2025
9416597
[test_OMCPath] only for Python >= 3.12
syntron Jul 11, 2025
c45b4f7
[test_OMCPath] update test
syntron Jul 11, 2025
30cb70e
[ModelicaSystem] simplify handling of inputs
syntron Jul 11, 2025
b822bf5
Merge branch 'ModelicaSystem_rewrite_set_functions' into ModelicaSyst…
syntron Jul 12, 2025
3ba84ab
[ModelicaSystem] fix mypy warning - value can have different types in…
syntron Jul 12, 2025
4b58c03
[OMCPath._omc_resolve] use sendExpression() with parsed=False
syntron Jul 12, 2025
c71b137
[test_OMCPath] cleanup; use the same code for local OMC and docker ba…
syntron Jul 12, 2025
a97bdd0
[test_OMCPath] define test for WSL
syntron Jul 12, 2025
2dadf3e
[test_OMCPath] use omcpath_tempdir() instead of hard-coded tempdir de…
syntron Jul 12, 2025
a89221d
Merge branch 'ModelicaSystem_xml' into OMCPath_merge
syntron Jul 12, 2025
111b209
Merge branch 'ModelicaSystem_linearize' into OMCPath_merge
syntron Jul 12, 2025
04d09ba
[ModelicaSystem] use OMCPath for nearly all file system interactions
syntron Jul 11, 2025
9c860e4
test only for Python 3.12 for now
syntron Jul 11, 2025
466740c
[test_ModelicaSystem] fix test_customBuildDirectory()
syntron Jul 11, 2025
63d2f87
[ModelicaSystemCmd] use OMCPath for file system interactions
syntron Jul 11, 2025
62958aa
[OMCProcessDockerHelper] implement omc_run_data_update() - UNTESTED!
syntron Jul 11, 2025
0be67f7
[OMCProcessWSL] implement omc_run_data_update() - UNTESTED!
syntron Jul 11, 2025
bad7608
[ModelicaSystemCmd] run session.omc_run_data_update() within run_def()
syntron Jul 12, 2025
ad3361f
[OMCSessionRunData] define cmd_cwd and use it in OMCProcessLocal
syntron Jul 12, 2025
a63bd50
[OMCProcessDockerHelper] define work directory in docker
syntron Jul 12, 2025
f02be6f
[OMCProcessWSL] define work directory for WSL
syntron Jul 12, 2025
c518e38
[OMCSessionRunData] update docstring and comments
syntron Jul 12, 2025
57c21cf
[ModelicaSystem] allow for non local execution, i.e. docker or WSL
syntron Jul 12, 2025
80f5c96
[test_ModelicaSystem] include test of ModelicaSystem using docker
syntron Jul 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
python-version: ['3.10', '3.12']
python-version: ['3.12']
os: ['ubuntu-latest', 'windows-latest']
omc-version: ['stable']

Expand Down
674 changes: 409 additions & 265 deletions OMPython/ModelicaSystem.py

Large diffs are not rendered by default.

Loading
Loading