Python interface
The python interface to IRA library is located in the file /IRA/interface/ira_mod.py.
It specifies wrappers to the fortran functions in IRA/src.
For complete details refer to Fortran source.
- class ira_mod.algo(shlib='')[source]
This is the python interface to the IRA and SOFI shared library file libira.so. In order to use it, install it via
pipfrom the root directory:python -m pip install .
Or, compile the IRA library with any other build tool, and then add the directory of this file to the environment variable PYTHONPATH:
export PYTHONPATH=/your/path/to/IRA/interface:$PYTHONPATH
Then IRA and SOFI can be imported and used in python as:
>>> import ira_mod >>> print( ira_mod.version ) >>> ira = ira_mod.IRA() >>> sofi = ira_mod.SOFI( )