Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 1.91 KB

README.md

File metadata and controls

56 lines (45 loc) · 1.91 KB

lya_2pt

Pytest codecov

Package for computing 3D correlation functions from the Lyman-alpha forest and associated tracers. This package is still under development.

Currently available functionality:

  • Auto-correlation function
  • Distortion matrix for auto-correlation

Remaining functionality to implement:

  • Support for cross-correlations
  • Metal matrices
  • Wick covariance

Installation

First, create a clean environment:

conda create -n my_env python==version gitpython
conda activate my_env

If you plan to use the MPI parallelized version, the next step is to install mpi4py. If you are at NERSC use this command (see NERSC documentation):

MPICC="cc -shared" pip install --force-reinstall --no-cache-dir --no-binary=mpi4py mpi4py

If not at NERSC, follow the instructions in the mpi4py documentation.

Finally, clone and install lya_2pt:

git clone https://github.com/igmhub/lya_2pt.git
cd lya_2pt
pip install -e .

Usage

You can run lya_2pt using a input configuration file with:

lya-2pt -i path/to/config.ini

See this example for how to setup the configuration file.

For running the MPI parralelized version at NERSC, use:

srun lya-2pt-mpi -i path/to/config.ini

If you want to export the computation products separately from computing them, use:

lya-2pt-export -i path/to/config.ini

Credits

This package is based in part on picca.