Skip to content

[ModelicaSystem] improve set functions #345

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

Conversation

syntron
Copy link
Contributor

@syntron syntron commented Aug 15, 2025

improve input handling for set*() functions

  • use a Pythonic way for input:
    setParameters(a=123)

    param = {'a': 123}
    setParameters(**param)

Based on PR #314 with input from SengerM (see PR #326); this replaces PR #326

@syntron
Copy link
Contributor Author

syntron commented Aug 16, 2025

@adeas31 one thing I did not checked but which is quite important to confirm here: are there the same rules for variable names in Python and OpenModelica? I assume yes and then all is fine - if not this PR should not be applied!

syntron added a commit to syntron/OMPython that referenced this pull request Aug 16, 2025
@adeas31 adeas31 added this to the 4.0.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