Installation#

Stable release#

nway is a pure Python program.

To install nway, run this command in your terminal:

$ pip install nway

This is the preferred method to install nway, as it will always install the most recent stable release.

The command line tool nway.py is installed for you as ~/.local/bin/nway.py.

If that directory is in your $PATH, you can run:

$ nway.py --help

If you don’t have pip installed, this Python installation guide can guide you through the process.

Upgrading from older Nway  versions#

To upgrade, uninstall the older Nway  version first:

$ pip uninstall nway

Repeat until it says that nway is not installed. Then follow the installation instructions above.

Download example data#

For obtaining the example data files, see below, installation “from sources”. The data (.fits files) are in the doc/ folder.

From sources#

The sources for nway can be downloaded from the Github repo.

You can either clone the public repository:

$ git clone git://github.com/JohannesBuchner/nway

Or download the tarball:

$ curl -OJL https://github.com/JohannesBuchner/nway/tarball/master

Once you have a copy of the source, you can install it with:

$ python setup.py install

You need these python packages:

scipy, astropy, matplotlib, tqdm, argparse, joblib, healpy, pandas.