The module can be installed using the script:

python install

Unit Tests

Prior to installation, the unit tests can be run using:

PYTHONPATH=lib python3 -m unittest


PYTHONPATH=lib python2 -m unittest discover

The test-extra directory contains additional tests which may take longer to perform. You can exclude these by specifying just the plain test directory, for example with:

PYTHONPATH=lib python -m unittest discover -s test

The routines included in the doctests should also be covered by the unit tests. However to ensure the documentation is correct, they can be checked with:

sphinx-build -b doctest doc doc/_build/doctest


For reading and writing data in FITS format, the astropy library is required.

Healpy is needed for some of the utility functions such as plot_moc and catalog_to_moc.