Skip to content

umbnat92/LAT_MFLike

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LAT Multifrequency Likelihood

An external likelihood using cobaya.

https://img.shields.io/github/workflow/status/simonsobs/LAT_MFLike/Unit%20test%20for%20mflike/feature-github-actions

Installing the code

You first need to clone this repository to some location

$ git clone https://github.com/simonsobs/LAT_MFLike.git /where/to/clone

Then you can install the mflike likelihood and its dependencies via

$ pip install -e /where/to/clone

The -e option allow the developer to make changes within the mflike directory without having to reinstall at every changes. If you plan to just use the likelihood and do not develop it, you can remove the -e option.

Installing LAT likelihood data

Preliminary simulated data can be found at NERSC. You can download them by yourself but you can also use the cobaya-install binary and let it do the installation job. For instance, if you do the next command

$ cobaya-install /where/to/clone/examples/mflike_example.yaml -p /where/to/put/packages

data and code such as CAMB will be downloaded and installed within the /where/to/put/packages directory. For more details, you can have a look to cobaya documentation.

Running/testing the code

You can test the mflike likelihood by doing

$ cobaya-run /where/to/clone/examples/mflike_example.yaml -p /where/to/put/packages

which should run a MCMC sampler for the simulation n°44 (i.e. data_sacc_00044.fits in the mflike_example.yaml file) using the combination of TT, TE and EE spectra (i.e. polarizations: ['TT', 'TE', 'ET', 'EE']). The results will be stored in the chains/mcmc directory.

About

Multifrequency Likelihood

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 95.4%
  • Python 4.6%