Skip to content

Conversation

@arun3688
Copy link
Collaborator

Purpose

This PR fixes the bug in getParameters() with new values set by users using setParameters() API. after rebuilding the model using buildModel().

Example

from OMPython import ModelicaSystem
omc= ModelicaSystem("Test.mo", "Test.Example")
omc.getParameters()
## use the setParameters() API 
omc.setParameters("c=9")
omc.buildModel
omc.simulate()
c = omc.getParameters("c")

output

c = 9

@arun3688 arun3688 merged commit 1179b9b into OpenModelica:master Aug 12, 2021
@arun3688 arun3688 deleted the getparameter branch August 12, 2021 09:20
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.

1 participant