Skip to content

Latest commit

 

History

History
85 lines (50 loc) · 3.54 KB

README.rst

File metadata and controls

85 lines (50 loc) · 3.54 KB

SPT Likelihoods

External likelihoods for SPT experiment using cobaya. These are python implementation of original Fortran code for CosmoMC sampler.

GitHub Workflow Status

The package includes the following likelihoods:

  • sptpol_2017 relates to SPTPol EETE likelihood used in Henning et al., 2017. The original Fortran code is available here or in LAMBDA.
  • spt3g_2020 relates to SPT3G EETE likelihood used in Dutcher et al., 2021. The original Fortran code is available here.

https://user-images.githubusercontent.com/2495611/212894449-75255465-f4f6-42e5-a8b6-b4b03bb246d6.png

  • spt_hiell_2020 relates to SPT-SZ TT likelihood used in Reichardt et al., 2020. The original Fortran code is available in LAMBDA.

https://user-images.githubusercontent.com/2495611/212894382-d114c2ca-2659-47ee-ab56-ce66f8a81b1f.png

  • spt3g_2022 relates to SPT3G TT, TE and EE likelihood used in Balkenhol et al., 2022. The original Fortran code is available here.

https://user-images.githubusercontent.com/2495611/214127005-aa514efa-4b73-43f7-a5ad-8274ffe151d9.png

Installing the code

You can install the following code by just typing

$ pip install git+https://github.com/xgarrido/spt_likelihoods.git

If you plan to develop/modify the code, the easiest way is to clone this repository to some location

$ git clone https://github.com/xgarrido/spt_likelihoods.git /where/to/clone

Then you can install the likelihoods and its dependencies via

$ pip install -e /where/to/clone

The -e option allow the developer to make changes within the spt 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 SPT likelihood data

SPT data are stored in LAMBDA. 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/spt3g_example.yaml -p /where/to/put/packages

data for SPT3G 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 SPT likelihoods by doing

$ test-spt

It will perform basic Χ² checks over the three different likelihoods.

You can also run MCMC chains with

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