Installation

You can install the most recent stable version of The Cannon using PyPI or the development version from GitHub.

Stable Version

The easiest way to install the most recent stable version of The Cannon is by using pip. This will install any of the prerequisites (e.g., numpy, scipy), if you don’t already have them:

pip install the-cannon

Note

Make sure you include the - in the-cannon in the command above, otherwise you will install Anna Ho’s version of The Cannon, which is excellent, but does not include analytic derivatives, regularization, or censoring.

Development Version

To get the source for the latest development version, clone the git repository on GitHub:

git clone https://github.com/andycasey/AnniesLasso.git
cd AnniesLasso
git checkout refactor # TODO

Then install the package by running the following command:

python setup.py install

Testing

To run all the unit and integration tests, install nose and then run:

nosetests -v --cover-package=thecannon