Skip to content

A Python interface to OpenModelica communicating via CORBA

License

Notifications You must be signed in to change notification settings

arun3688/OMPython

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OMPython

OMPython is a Python interface that uses ZeroMQ or CORBA (omniORB) to communicate with OpenModelica.

FMITest Test

Dependencies

Using ZeroMQ

  • Python 2.7 and 3.x supported
  • PyZMQ is required

Using omniORB

  • Currently, only Python 2.7 is supported
  • omniORB is required:
    • Windows: included in the OpenModelica installation
    • Linux: Install omniORB including Python 2 support (the omniidl command needs to be on the PATH). On Ubuntu, this is done by running sudo apt-get install omniorb python-omniorb omniidl omniidl-python

Installation

Installation using pip is recommended.

Linux

Install the latest OMPython master by running:

python -m pip install -U https://github.com/OpenModelica/OMPython/archive/master.zip

Windows

Install the version as packaged with your OpenModelica installation by running:

cd %OPENMODELICAHOME%\share\omc\scripts\PythonInterface
python -m pip install -U .

Instead, to Install the latest version of the OMPython master branch only, previously cloned into <OMPythonPath>, run:

cd <OMPythonPath>
python -m pip install -U .

Usage

Running the following commads should get you started

import OMPython
help(OMPython)

or read the OMPython documentation online.

Bug Reports

Contact

About

A Python interface to OpenModelica communicating via CORBA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%