Installation¶
Python version¶
Both python2 and python3 can run in a single process,If you want to run in parallel, it depends on whether the installed MPI package is supported by Python2 or Python3.
Prerequisites¶
For the installation and proper work of ULSA, the following packages are
required:
h5py, Pythonic interface to the HDF5 binary data format;
numpy, Base N-dimensional array package for Python;
scipy, The fundamental package for scientific computing with Python;
matplotlib, A python 2D plotting library;
caput, Cluster Astronomical Python Utilities;
NE2001, the free electron distribution in galaxy;
mpi4py, This package provides Python bindings for the Message Passing Interface (MPI) standard;
Note
ULSA can work without MPI support, in which case, only a single
process is invoked, but in order to process large amounts of data in parallel
and distributed manner, mpi4py is needed.
Installation guide¶
After you have successfully installed the prerequisites, do the following.
First clone this package
$ git clone https://github.com/Yanping-Cong/ULSA
Then change to the top directory of this package, install it by the usual methods, either the standard
$ python setup.py install [--user]
or to develop the package
$ python setup.py develop [--user]
It should also be installable directly with pip using the command
$ pip install [-e] git+https://github.com/Yanping-Cong/ULSA.git