Giter VIP home page Giter VIP logo

fastpm-python's Introduction

fastpm

This is the Python implementation of the FastPM numerical scheme for quasi-nbody simulations.

CI status / master

Build Status

Install

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

LD_LIBRARY_PATH hack

When installing pmesh, prefix LD_LIBRARY_PATH helps the compilation of a package named pfft-python, the parallel FFT software we use.

Keeping abopt and pmesh upto date

FastPM and abopt, and pmesh come hand in hand -- to update abopt and pmesh:

pip install -U --nodeps abopt pmesh

Development

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

fastpm-python's People

Contributors

rainwoodman avatar

Watchers

James Cloos avatar Nick Hand avatar

Forkers

luguoyuanhaha

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.