Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.55 KB

README.md

File metadata and controls

51 lines (38 loc) · 1.55 KB

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]