Skip to content

MariaTsedrik/MGLensing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MGLensing

Repository containing a likelihood (initially based on this pipeline) for photometric probes with emulated nonlinear power spectra and various other emulators.

The purpose of this code:

  • Perform a quick and light MCMC analysis for Stage IV surveys, which is useful for forecasts, scale-cuts, and studies of projection effects.
  • Without inclusion of systematic effects on large scales, we focus on systematics on small/nonlinear scales for standard and extended cosmologies: nonlinear galaxy bias expansion, nonlinearities in the matter power spectrum, baryons.
  • Quick analysis of N-body simulations.

This code is not complete to perform a real data analysis (yet), but is a fairly realistic and good-enough in-between solution.

Available Models

  • BACCO-emulator and HMcode2020-emulator:
    • $\Lambda$ CDM, $w$ CDM and $w_0w_a$ CDM with neutrinos.
  • ReACT-based emulators:
  • Simulation-based emulators:
  • Galaxy bias:
    • Linear;
    • Phenomenalogical $b(z, k) = b_1(z) + b_2(z) k^2$;
    • Hybrid Lagrangian bias epxansion (HEFT) with BACCO-emulator.
  • Baryons:
    • HMcode2020;
    • BCemu;
    • BACCO-emulator.
  • Intrinsic alignment:
    • extended redshift-dependent nonlinear alignment (e-zNLA);
    • tidal alignment and tidal torquing (TATT).
  • Photo-z uncertainties:
    • additative;
    • multiplicative.

How to run

Modify "config.yaml" file and specify

  • Observables;
  • Specifics of your survey;
  • Modelling for your mock synthetic data;
  • Modelling for your theoretical predictions;
  • File-paths with fiducial data points (e.g., "params_data.yaml") and priors (e.g., "params_model_hmcode.yaml");
  • Output-file name.

You can then run a test likelihood computation:

import MGLensing

MGL = MGLensing.MGL("config.yaml")
MGL.test() 

Following files provide examples of using MGL:

  • plotting_scripts/plot_power_spectrum.py and plotting_scripts/plot_c_ells.py : compute and plot observables and modelling components;
  • test_mcmc_run.py: run an MCMC chain with Nautilus sampler;
  • plotting_scripts/plot_posterior.py: plot posterior distributions with GetDist;
  • plotting_scripts/postprocess_compute_S8.py: compute $\sigma_8$ and $S_8$ from a chain.

Documentation

The documentation can be found at mglensing.readthedocs.io.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •