Skip to content

ModelicaSystem update __init__() - #350

Merged
adeas31 merged 15 commits into
OpenModelica:masterfrom
syntron:ModelicaSystem_init
Nov 13, 2025
Merged

ModelicaSystem update __init__()#350
adeas31 merged 15 commits into
OpenModelica:masterfrom
syntron:ModelicaSystem_init

Conversation

@syntron

@syntron syntron commented Aug 23, 2025

Copy link
Copy Markdown
Contributor

see issue #305

This PR splits __init__() into two parts:

  • __init__() - main initialisation
  • model() - all model related definitions (was old: definition())

This allows to use convertFmu2Mo() after a instanciation of ModelicaSystem() 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

@adeas31 adeas31 added this to the 4.1.0 milestone Aug 25, 2025
@syntron
syntron force-pushed the ModelicaSystem_init branch from 5bfd5b7 to 297c77c Compare August 25, 2025 20:23
@syntron
syntron marked this pull request as ready for review August 25, 2025 20:36
@syntron
syntron force-pushed the ModelicaSystem_init branch from 297c77c to df4805a Compare August 26, 2025 18:58
@syntron syntron mentioned this pull request Sep 18, 2025
@syntron
syntron force-pushed the ModelicaSystem_init branch from df4805a to e255d27 Compare October 15, 2025 18:50
@syntron
syntron force-pushed the ModelicaSystem_init branch from e255d27 to e06ff5d Compare October 30, 2025 20:34
@adeas31

adeas31 commented Nov 3, 2025

Copy link
Copy Markdown
Member

Please rebase.

@syntron
syntron force-pushed the ModelicaSystem_init branch from e06ff5d to 8feeff7 Compare November 4, 2025 16:42
@syntron

syntron commented Nov 4, 2025

Copy link
Copy Markdown
Contributor Author

Please rebase.

Done; see also #361 for an overview

@syntron
syntron force-pushed the ModelicaSystem_init branch 4 times, most recently from ae66564 to 18dd4f2 Compare November 5, 2025 22:03
@adeas31

adeas31 commented Nov 6, 2025

Copy link
Copy Markdown
Member

Need to rebase again.

@syntron
syntron force-pushed the ModelicaSystem_init branch from 3ae06c2 to d8228d2 Compare November 6, 2025 14:09
Comment thread OMPython/ModelicaSystem.py Outdated

@adeas31 adeas31 left a comment

Copy link
Copy Markdown
Member

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.

@adeas31
adeas31 merged commit ea1cdcc into OpenModelica:master Nov 13, 2025
14 checks passed
@casella

casella commented Nov 13, 2025

Copy link
Copy Markdown

@syntron, please see #374

@syntron
syntron deleted the ModelicaSystem_init branch November 13, 2025 20:27
@syntron syntron mentioned this pull request Dec 2, 2025
@adeas31 adeas31 modified the milestones: 4.1.0, 5.0.0 Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants