Skip to content

Conversion guide to upgrade to OMPython 4 #373

@AnHeuermann

Description

@AnHeuermann

Description

Is there a write up of the main breaking changes in OMPython v4.0.0?

While trying to update OMPython in https://github.com/OpenModelica/OpenModelicaLibraryTesting I noticed some breaking changes. It would be nice if there was some place in the documentation telling users how to upgrade.

Breaking changes I noticed:

  • Class OMCSessionZMQ no longer accepts Docker arguments --> I found a new class OMCProcessDocker which does and used that one.
  • Module pyparsing is no longer exported.
  • omc.sendExpression('exit') no longer works --> omc.sendExpression('quit()') or simply let the class destruction handle it.

Are there more mayor changes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions