Python Interface

The Python interface is provided through the pymsg module, which defines the pymsg.SpecGrid and pymsg.PhotGrid classes. It is implemented by Cython-wrapped calls to the C Interface.

API Specification

Importing

The pymsg module is provided in the $MSG_DIR/python directory. To import the module, this directory should be added to the Python path — for instance by setting the PYTHONPATH environment variable, as discussed here.