Skip to content

A Python interface to OpenModelica communicating via CORBA or ZeroMQ

License

Notifications You must be signed in to change notification settings

bilderbuchi/OMPython

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OMPython

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

Dependencies

Using omniORB (Python 2 only)

  • Python 2.7 is required (omniORB restriction). Download Python from http://www.python.org/download/
  • omniORB is required
    • Windows: included in the installer of OpenModelica
    • 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 using pip is recommended.

Using ZeroMQ (Python 2 and 3 supported)

Installation

Linux

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

Windows

  • Add python to your PATH.
  • Start command prompt/terminal and execute commands,
> cd %OPENMODELICAHOME%\share\omc\scripts\PythonInterface
> python -m pip install .
  • This will add OMPython to the Python 3rd party libraries.

Usage

import OMPython
help(OMPython)

Bug Reports

Contact

Adeel Asghar, [email protected]
Arunkumar Palanisamy, [email protected]

About

A Python interface to OpenModelica communicating via CORBA or ZeroMQ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%