CosmoFast¶
CosmoFast is an add-on package for BayesFast developed by He Jia and Uros Seljak, which provides several frequently-used cosmological modules.
Links¶
BayesFast Website: https://www.bayesfast.org/
Documentation: https://cosmofast.readthedocs.io/en/latest/
Source Code: https://github.com/HerculesJack/cosmofast
Bug Reports: https://github.com/HerculesJack/cosmofast/issues
Installation¶
We plan to add pypi and conda-forge support later. For now, please first install BayesFast, and then install CosmoFast from source with:
git clone https://github.com/HerculesJack/cosmofast
cd cosmofast
pip install -e .
# you can drop the -e option if you don't want to use editable mode
# but note that pytest may not work correctly in this case
To check if CosmoFast is built correctly, you can do:
pytest # for this you will need to have pytest and numdifftools installed
Dependencies¶
CosmoFast requires python>=3.6, astropy, bayesfast, camb, cython, numpy and scipy. Currently, it has been tested on Ubuntu and MacOS, with python 3.6-3.8.
License¶
CosmoFast is distributed under the Apache License, Version 2.0.
Citing CosmoFast¶
If you find CosmoFast useful for your research, please consider citing our papers accordingly:
He Jia and Uros Seljak, BayesFast: A Fast and Scalable Method for Cosmological Bayesian Inference, in prep (for posterior sampling)
He Jia and Uros Seljak, Normalizing Constant Estimation with Gaussianized Bridge Sampling, AABI 2019 Proceedings, PMLR 118:1-14 (for evidence estimation)