Installation¶
The module can be installed using the setup.py
script:
python setup.py install
Unit Tests¶
Prior to installation, the unit tests can be run using:
PYTHONPATH=lib python3 -m unittest
or:
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
Requirements¶
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
.