Skip to content

Releases: OpenModelica/OMPython

v4.0.0

20 Oct 11:14
c902a4b

Choose a tag to compare

  • Info

    • changes start at #225 (2025/10/17) and end at #349 (2025/09/19); 86 commits in total
  • main changes

    • refactor file structure (#257) - split code into separate files using init.py only to provide the package interface
    • consistently use of the logging package; remove all usage of print() (#253, #269)
    • Split functions for specific OMC commands as separate class OMCSessionCMD (#282) - to be removed in a later version!
    • allow to run OMCsession in Docker / WSL (#319, #295, #302, #306)
  • interface changes

    • allow to modify default command line options (#349) - ModelicaSystem/commandLineOptions now as list (was a string)
    • Make ModelicaSystem.linearize() return all values (#266)
    • ModelicaSystem can only be run local using OMCProcessLocal (#309)
    • Getter functions of ModelicaSystem now take also a list as input and raise KeyError if a value does not exists (#299)
    • Setter functions of ModelicaSystem now take also a dict as input (#314)
    • Simulation flags to be provided as dicts (use simargs; simflags is depreciated) (#279)
  • internal details / for developers

    • setup pre-commit (#289) - enforce code quality by using codespell, flake8 and mypy
    • improve unittest coverage and code quality (#246, #249, ...)
    • use specific exceptions for OMCsession* and ModelicaSystem* (#228, #272)
    • add / improve docstrings (#257, #337, ...)
    • use '_' for private variables and functions (#304)
    • use pathlib.Path() for any path handling, preparing for OMCPath (#247, #280, #303, #303, #329)
    • definition of class ModelicaSystemCmd to handle simulations (#279)
    • Define OMCProcess* classes to handle different definitions (by Port/LOcal/Docker/WSL) (#295, #302, #306)
    • lots of rewrites for internal functions (ModelicaSystem/OMCSession) (#265, #271, #270, #281, #287, #295, #301, #316, #311, #314, #340, #341, ...)
  • important bugfixes

    • On Windows use information in *.bat file to define the needed dll paths (#229)
    • issue 245 - Fix ModelicaSystem cannot load from relative path (#247)
    • issue 224 - do not run the results of linearize() as python cade as it breaks matplotlib (#320)
  • removed features

    • remove corba support (#240)
    • drop Python 2.x; Python >= 3.10 needed (#256)

New Contributors

Full Changelog: v3.6.0...v4.0.0

v3.6.0

27 May 08:05
c6a204e

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.5.2...v3.6.0

v3.5.2

11 Jun 10:00
014193d

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.5.1...v3.5.2

v3.5.1

07 Mar 13:42
1fcbcac

Choose a tag to compare

What's Changed

Full Changelog: v3.5.0...v3.5.1

v3.5.0

29 Feb 14:00
adf2708

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.4.0...v3.5.0

v3.4.0

14 Apr 14:01
7baf082

Choose a tag to compare

What's Changed

  • Replaced deprecated 'getchildren' method with 'list(elem)' for Python >= 3.2 by @kzscisoft in #132
  • Avoid using translations by @adeas31 in #131
  • add needed dll's to PATH for windows simulation by @arun3688 in #136
  • fix linearfile for linearization() by @arun3688 in #140
  • report info message for non-modifiable parameters by @arun3688 in #141
  • update getParameters when rebuilding model by @arun3688 in #142
  • allow users to provide library version by @arun3688 in #143
  • fix getClassNames without className argument by @Arinomo in #154
  • New release version 3.4.0 by @adeas31 in #158

Full Changelog: v3.3.0...v3.4.0

v3.2.0

07 Sep 05:16

Choose a tag to compare

3.2.0 release

v3.0.3

15 Jun 09:06

Choose a tag to compare

Fixed some potential deadlocks

v3.0.0

14 Nov 13:42

Choose a tag to compare

OMPython 3.0.0