{"id":17788936,"url":"https://github.com/xgarrido/spt_likelihoods","last_synced_at":"2025-06-18T06:35:24.604Z","repository":{"id":39264222,"uuid":"351738407","full_name":"xgarrido/spt_likelihoods","owner":"xgarrido","description":"Cobaya likelihoods for SPT experiment","archived":false,"fork":false,"pushed_at":"2023-12-11T06:52:19.000Z","size":243,"stargazers_count":6,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-27T07:44:03.183Z","etag":null,"topics":["cobaya","likelihood","mcmc"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xgarrido.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-03-26T10:06:43.000Z","updated_at":"2025-02-02T20:47:26.000Z","dependencies_parsed_at":"2023-12-11T08:17:45.573Z","dependency_job_id":null,"html_url":"https://github.com/xgarrido/spt_likelihoods","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgarrido%2Fspt_likelihoods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgarrido%2Fspt_likelihoods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgarrido%2Fspt_likelihoods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgarrido%2Fspt_likelihoods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xgarrido","download_url":"https://codeload.github.com/xgarrido/spt_likelihoods/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814898,"owners_count":20352037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cobaya","likelihood","mcmc"],"created_at":"2024-10-27T10:26:12.503Z","updated_at":"2025-03-16T10:31:47.787Z","avatar_url":"https://github.com/xgarrido.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===============\nSPT Likelihoods\n===============\n\nExternal likelihoods for SPT experiment using `cobaya\n\u003chttps://github.com/CobayaSampler/cobaya\u003e`_. These are ``python`` implementation of original ``Fortran``\ncode for ``CosmoMC`` sampler.\n\n.. image:: https://img.shields.io/github/actions/workflow/status/xgarrido/spt_likelihoods/testing.yml\n   :alt: GitHub Workflow Status\n   :target: https://github.com/xgarrido/spt_likelihoods/actions\n\nThe package includes the following likelihoods:\n\n- ``sptpol_2017`` relates to SPTPol EETE likelihood used in `Henning et al. \u003chttps://arxiv.org/abs/1707.09353\u003e`_, 2017. The original ``Fortran`` code is available `here \u003chttps://pole.uchicago.edu/public/data/henning17/\u003e`_ or in `LAMBDA \u003chttps://lambda.gsfc.nasa.gov/product/spt/sptpol_lh_2017_get.cfm\u003e`_.\n\n- ``spt3g_2020`` relates to SPT3G EETE likelihood used in `Dutcher et al. \u003chttps://arxiv.org/abs/2101.01684\u003e`_, 2021. The original ``Fortran`` code is available `here \u003chttps://pole.uchicago.edu/public/data/dutcher21/#Likelihood\u003e`_.\n\n.. image:: https://user-images.githubusercontent.com/2495611/212894449-75255465-f4f6-42e5-a8b6-b4b03bb246d6.png\n\n- ``spt_hiell_2020`` relates to SPT-SZ TT likelihood used in `Reichardt et al. \u003chttps://arxiv.org/abs/2002.06197\u003e`_, 2020. The original ``Fortran`` code is available in `LAMBDA \u003chttps://lambda.gsfc.nasa.gov/product/spt/spt_ps_2020_get.cfm\u003e`_.\n\n.. image:: https://user-images.githubusercontent.com/2495611/212894382-d114c2ca-2659-47ee-ab56-ce66f8a81b1f.png\n\n- ``spt3g_2022`` relates to SPT3G TT, TE and EE likelihood used in `Balkenhol et al. \u003chttps://arxiv.org/abs/2212.05642\u003e`_, 2022. The original ``Fortran`` code is available `here \u003chttps://pole.uchicago.edu/public/data/balkenhol22/#Likelihood\u003e`_.\n\n.. image:: https://user-images.githubusercontent.com/2495611/214127005-aa514efa-4b73-43f7-a5ad-8274ffe151d9.png\n\nInstalling the code\n-------------------\n\nYou can install the following code by just typing\n\n.. code:: shell\n\n    $ pip install git+https://github.com/xgarrido/spt_likelihoods.git\n\n\nIf you plan to develop/modify the code, the easiest way is to clone this repository to some location\n\n.. code:: shell\n\n    $ git clone https://github.com/xgarrido/spt_likelihoods.git /where/to/clone\n\nThen you can install the likelihoods and its dependencies *via*\n\n.. code:: shell\n\n    $ pip install -e /where/to/clone\n\nThe ``-e`` option allow the developer to make changes within the ``spt`` directory without having\nto reinstall at every changes. If you plan to just use the likelihood and do not develop it, you can\nremove the ``-e`` option.\n\nInstalling SPT likelihood data\n------------------------------\n\nSPT data are stored in `LAMBDA \u003chttps://lambda.gsfc.nasa.gov/product/spt\u003e`_. You can download them\nby yourself but you can also use the ``cobaya-install`` binary and let it do the installation\njob. For instance, if you do the next command\n\n.. code:: shell\n\n    $ cobaya-install /where/to/clone/examples/spt3g_example.yaml -p /where/to/put/packages\n\ndata for SPT3G and code such as `CAMB \u003chttps://github.com/cmbant/CAMB\u003e`_ will be downloaded and\ninstalled within the ``/where/to/put/packages`` directory. For more details, you can have a look to\n``cobaya`` `documentation \u003chttps://cobaya.readthedocs.io/en/latest/installation_cosmo.html\u003e`_.\n\nRunning/testing the code\n------------------------\n\nYou can test the ``SPT`` likelihoods by doing\n\n.. code:: shell\n\n    $ test-spt\n\nIt will perform basic Χ² checks over the three different likelihoods.\n\nYou can also run MCMC chains with\n\n.. code:: shell\n\n    $ cobaya-run /where/to/clone/examples/spt3g_example.yaml -p /where/to/put/packages\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxgarrido%2Fspt_likelihoods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxgarrido%2Fspt_likelihoods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxgarrido%2Fspt_likelihoods/lists"}