Skip to content

franciscovillaescusa/Pylians

Repository files navigation

Pylians

Pylians stands for Python libraries for the analysis of numerical simulations. They are a set of python libraries, written in python, cython and C, whose purposes is to facilitate the analysis of numerical simulations (both N-body and hydro). Among other things, they can be used to:

  • Compute density fields
  • Compute power spectra
  • Compute bispectra
  • Compute correlation functions
  • Identify voids
  • Populate halos with galaxies using an HOD
  • Apply HI+H2 corrections to the output of hydrodynamic simulations
  • Make 21cm maps
  • Compute DLAs column density distribution functions
  • Plot density fields and make movies

Pylians were the native or inhabitant of the Homeric town of Pylos.

Notice that Pylians only works with python2. For a python3 version see Pylians3.

From 2020 only Pylians3 will be supported/updated.

Requisites

  • numpy
  • scipy
  • h5py
  • pyfftw
  • mpi4py
  • cython
  • openmp

We recommend installing the first packages with anaconda.

Installation

cd library
python setup.py build

The compiled libraries and scripts are in build/lib.XXX, where XXX depends on your machine. E.g. build/lib.linux-x86_64-2.7 or build/lib.macosx-10.7-x86_64-2.7

Add that folder to your PYTHONPATH in ~/.bashrc

export PYTHONPATH=$PYTHONPATH:$HOME/Pylians/library/build/lib.linux-x86_64-2.7

Usage

The most updated documentation with examples can be found here.

Contact

For comments, problems, bugs... etc you can reach me at [email protected].