Skip to content

ModelicaSystem - use OMCPath #322

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 53 commits into
base: master
Choose a base branch
from

Conversation

syntron
Copy link
Contributor

@syntron syntron commented Jul 11, 2025

A big step on the way to run ModelicaSystem not only locally; see #315 item (1):

  1. need of file system interactions => solution: create OMCPath, an implementation of a pathlib.Path object which uses OMC as backend (see detailed analyses which functionality is needed in PR [ModelicaSystem] only local omc process allowed #309)

based on PR #317, #314, #320 and #321

addditional requirements: PR #329 and PR #330

@syntron syntron force-pushed the ModelicaSystem_use_OMCPath branch from f1695a9 to 466740c Compare July 12, 2025 14:22
@syntron syntron force-pushed the ModelicaSystem_use_OMCPath branch from 466740c to 3278b53 Compare July 22, 2025 18:38
@syntron syntron force-pushed the ModelicaSystem_use_OMCPath branch 4 times, most recently from 74f1c4e to 17baf1a Compare August 12, 2025 20:12
@syntron syntron marked this pull request as ready for review August 12, 2025 20:29
@syntron syntron force-pushed the ModelicaSystem_use_OMCPath branch from 17baf1a to 082be04 Compare August 14, 2025 20:19
syntron added 28 commits August 16, 2025 14:49
error: "unlink" of "OMCPathReal" does not return a value (it only ever returns None)  [func-returns-value]
* use as input str or os.PathLike; the later covers all pathlib objects
* rename _tempdir to _work_dir
* rename setTempDirectory() => setWorkDirectory()
* setWorkDirectory() sets the work dir and also returns its path
* use setWorkDirectory() within code; this allows to add special handling
  to the function if needed
background: if OMCPath will be used, it is not available
background: open() is not available if OMCPath is used
* define file name based on result file name & Path
* simplify code
* 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
@syntron syntron force-pushed the ModelicaSystem_use_OMCPath branch from 082be04 to 087db3d 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