-
Notifications
You must be signed in to change notification settings - Fork 64
ModelicaSystem update __init__() #350
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
Conversation
5bfd5b7 to
297c77c
Compare
297c77c to
df4805a
Compare
df4805a to
e255d27
Compare
e255d27 to
e06ff5d
Compare
|
Please rebase. |
e06ff5d to
8feeff7
Compare
Done; see also #361 for an overview |
ae66564 to
18dd4f2
Compare
|
Need to rebase again. |
new: * __init__() - initialisation * model_definition() - model related definitions
3ae06c2 to
d8228d2
Compare
adeas31
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This is a breaking change as the interface to ModelicaSystem is changed so please update the UsersGuide accordingly https://openmodelica.org/doc/OpenModelicaUsersGuide/latest/ompython.html#ompython
At sometime we should also include all the new features of OMPython in UsersGuide.
see issue #305
This PR splits
__init__()into two parts:__init__()- main initialisationmodel()- all model related definitions (was old:definition())This allows to use
convertFmu2Mo()after a instanciation ofModelicaSystem()for the definition of the model to be used (this should be done in a separate PR)Defined as a draft to allow a discussion; this will be a breaking change of the API! => milestone 4.1.0?
based on top of PR #349