Installation

Requirements

Astroimtools has the following strict requirements:

pytest-astropy (0.10 or later) is required to run the test suite.

Some functionality is available only if the following optional dependencies are installed:

  • Photutils 1.5 or later: Used in cutout tools.

  • Matplotlib 3.5 or later: Used in cutout tools.

  • reproject 0.9 or later: Used in cutout tools.

Installing the latest released version

The latest released (stable) version of astroimtools can be installed with pip by running:

pip install astroimtools

If you want to install astroimtools along with all of its optional dependencies, you can instead do:

pip install "astroimtools[all]"

Testing an Installed Astroimtools

The easiest way to test your installed version of astroimtools is running correctly is to use the test() function:

>>> import astroimtools
>>> astroimtools.test()

Note that this may not work if you start Python from within the astroimtools source distribution directory.

The tests should run and print out any failures, which you can report to the astroimtools issue tracker.