Skip to content

MariaTsedrik/MGLensing

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

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

folder = os.path.dirname(os.path.abspath(__file__))
os.chdir(folder)

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

Following files provide examples of using MGL:

  • test_mcmc_run.py: run an MCMC chain with Nautilus sampler;
  • notebooks in the tutorials-folder

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

 
 
 

Contributors