LaCE contains a set of emulators for the one-dimensional flux power spectrum of the Lyman-alpha forest. It has been used in the papers:
Please cite at least https://arxiv.org/abs/2305.19064 if you use this emulator in your research.
There is a documentation website with installation instructions and relevant descriptions at [here](https://igmhub.github.io/LaCE/
(Last updated: Nov 19 2024)
LaCE contains a submodule to estimate compressed parameters from the power spectrum that uses cosmopower. The LaCE installation is slightly different depending on whether you want to use cosmopower or not.
conda create -n lace -c conda-forge python=3.11 pip
conda activate lace
pip install --upgrade pip
git clone https://github.com/igmhub/LaCE.git
cd LacE
pip install -e .
pip install -e ".[explicit]"
conda create -n lace python=3.11 pip
conda activate lace
pip install --upgrade pip
Install cosmopower:
pip install cosmopower pyDOE
Clone the repo into your machine and perform an editable installation:
git clone https://github.com/igmhub/LaCE.git
cd LacE
Install LaCE using the installation with explicit dependencies:
pip install -e ".[explicit]"
Please run the following script to check that the package is working properly.
python test_lace.py
"env": {
"NYX_PATH":"path_to_Nyx"
}
You also need to add the Nyx path as an environment variable. The Nyx data is located at NERSC in
NYX_PATH="/global/cfs/cdirs/desi/science/lya/y1-p1d/likelihood_files/nyx_files/"
python scripts/save_nyx_emu_cosmo.py
python scripts/save_nyx_IGM.py
These are the parameters that describe each individual P1D(k) power spectrum. We have detached these from redshift and traditional cosmology parameters.
Delta2_p
is the amplitude of the (dimensionless) linear spectrum at k_p = 0.7 1/Mpc
n_p
is the slope of the linear power spectrum at k_p
alpha_p
is the running of the linear power spectrum at k_p
f_p
is the (scale-independent) logarithmic growth rate
The current version of the emulator, relased in this repo, does not emulate alpha_p
and f_p
. However, these parameters are stored in the P1D archive.
mF
is the mean transmitted flux fraction in the box (mean flux)
sigT_Mpc
is the thermal broadening scale in comoving units, computed from T_0
in the temperature-density relation
gamma
is the slope of the temperature-density relation
kF_Mpc
is the filtering length (or pressure smoothing scale) in inverse comoving units
jupytext --to ipynb notebooks/*.py
ipykernel
:pip install ipykernel
python -m ipykernel install --user --name lace --display-name lace
In the Notebooks
folder, there are several tutorials one can run to learn how to use the archives and emulators.