Skip to content

Likelihood README

anicola edited this page Jun 2, 2019 · 5 revisions

The MCMC sampling is done using CosmoHammer and it consists of three different parts:

  • run_CosmoHammer.py: central script to launch an MCMC run
  • hsc_core_module.py: computes theoretical power spectra for all tracers
  • hsc_like_module.py: takes theory spectra computed in hsc_core_module.py and computes likelihood

The run parameters can be passed and specified with yaml files. An example can be found in the hsc/config directory.

Steps to run MCMCs:

  • Install CosmoHammer: pip install cosmohammer
  • If you want to use MPI, also install mpi4py: pip install mpi4py
  • Then from the command line inside the LSSLike directory, run python hsc/run_CosmoHammer.py --path2config path/to/your/favorite/config.yaml

Clone this wiki locally