This is the Python implementation of the FastPM numerical scheme for quasi-nbody simulations.
CI status / master
The best result is obtained by using anaconda.
Python 3 is the current development environment.
First set up the basic requirements,
conda install cython numpy scipy mpi4py nose # We need to install gcc of conda to properly build the packages on OSX # against conda packages conda install gcc # only on Mac OSX env LD_LIBRARY_PATH=$CONDA_PREFIX/lib pip install pmesh bigfile
FastPM is build as a forward model with abopt, so we need that.
pip install abopt
For running the nonlinear reconstruction code, or use the nbodykit integration, we need a recent version of nbodykit and matplotlib
conda install dask h5py pandas pip install https://github.com/bccp/nbodykit/archive/master.zip conda install matplotlib
Finally, we can install fastpm, either from PYPI (the latest release)
pip install fastpm
or from the git clone :
python setup.py install
When installing pmesh, prefix LD_LIBRARY_PATH helps the compilation of a package named pfft-python, the parallel FFT software we use.
FastPM and abopt, and pmesh come hand in hand -- to update abopt and pmesh:
pip install -U --nodeps abopt pmesh
To run the tests
python runtests.py
python runtests.py --mpirun
To run a single test (e.g. test_fastpm.py:test_name) :
python runtests.py --mpirun -t fastpm/tests/test_fastpm:test_name