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

Open
wants to merge 72 commits into
base: master
Choose a base branch
from

Conversation

syntron
Copy link
Contributor

@syntron syntron commented Jul 12, 2025

Use OMCPath in ModelicaSystemCMD - this allows to run ModelicaSystem simulations using docker or WSL

Please check tests.test_ModelicaSystem.test_getSolutions_docker for an example

Based on PR #322

Additional requirements: PR #331 and PR #332

@syntron
Copy link
Contributor Author

syntron commented Jul 12, 2025

@Sonyoyo feel free to also test this PR - it should allow you to use ModelicaSystem in combination with OMC in WSL

Test case to check: tests.test_ModelicaSystem.test_getSolutions_docker - this can be easily adapted to run on WSL ...

Please keep in mind that Python >= 3.12 is needed!

@syntron syntron force-pushed the ModelicaSystemCmd_use_OMCPath branch from 80f5c96 to f469523 Compare July 22, 2025 18:38
@syntron syntron force-pushed the ModelicaSystemCmd_use_OMCPath branch from f469523 to 62cb4d3 Compare August 11, 2025 20:39
@syntron syntron marked this pull request as ready for review August 11, 2025 21:06
@syntron syntron marked this pull request as draft August 11, 2025 21:07
@syntron syntron force-pushed the ModelicaSystemCmd_use_OMCPath branch from 62cb4d3 to 2616a18 Compare August 12, 2025 20:12
@syntron syntron marked this pull request as ready for review August 12, 2025 20:41
@syntron syntron force-pushed the ModelicaSystemCmd_use_OMCPath branch from 2616a18 to 890401c Compare August 14, 2025 20:19
syntron added 28 commits August 16, 2025 14:55
* define file name based on result file name & Path
* simplify code
* allow different ways to define the path
remove pathlib - use OMCPath and (for type hints) os.PathLike
…te()

* no dependency loop OMCsessionZMQ => OMCProcess* => OMCSessionZMQ
* check if model executable exists will be handled via ModelicaSystemCmd
@syntron syntron force-pushed the ModelicaSystemCmd_use_OMCPath branch from 890401c to eea4a5d Compare August 16, 2025 13:26
@adeas31 adeas31 added this to the 4.1.0 milestone Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants