This is the official repository for the latest MGCAMB package to work with Cobaya. Specifically, it is an independent package of MGCAMB, and the Cobaya source along with other cosmological codes and data should be installed separately following the instructions on the official Cobaya website.
To install the packgage, you need:
git clone https://github.com/sfu-cosmo/MGCobaya.git
cd MGCobaya/MGCAMB
python setup.py build
Besides, since there is no MG counterpart of Halofit, nonlinear corrections should be turned off when running Cobaya. You need to replace some DES 1YR dataset files with:
cp /path/to/MGCobaya/des/des_data/* /path/to/packages/data/des_data/
where /path/to/packages is the default directory you install all other cosmological codes and data working for Cobaya.
Moreover, if you want to use DES likelihoods, make sure to set the path under the block of DES likelihoods in your_input.yaml:
python_path: /path/to/MGCobaya/des
To run Cobaya with MGCAMB, you need to create an input yaml file including MG parameters adopted by MGCAMB models. The provided temp.yaml could be a useful template to modify according to which model you want to work with. Please refer to params_MG.ini for the description of MG model parameters, MGCAMB page for a structure of the models, and also the instructions on Cobaya website for complete instructions on running Cobaya.
Please note that MGCAMB is currently still using the pipeline of CAMB in Cobaya runs, so you need to specify the path of your MGCAMB installation under the theory/camb block in your_input.yaml file, using:
path: /path/to/MGCobaya/MGCAMB
Besides, if using DE_model = 1(wCDM), be sure to set [dark_energy_model: 'fluid'] in your_input.yaml; and if using DE_model = 2((w0,wa)CDM), be sure to set [dark_energy_model: 'ppf'] in your_input.yaml. In general, the way to run Cobaya with MGCAMB is the same as the other theory packages(CAMB, CLASS), thus simply use:
cobaya-run your_input.yaml
Please refer to official Cobaya website for more details of settings for cosmological runs.
If you use MGCobaya for your scientific work, please cite the following papers:
-
New MGCAMB tests of gravity with CosmoMC and Cobaya
Zhuangfei Wang, Seyed Hamidreza Mirpoorian, Levon Pogosian, Alessandra Silvestri, Gong-Bo Zhao
arXiv:2305.05667 [astro-ph.CO] -
MGCAMB with massive neutrinos and dynamical dark energy
Alex Zucca, Levon Pogosian, Alessandra Silvestri, and Gong-Bo Zhao
arXiv:1901.05956 [astro-ph.CO] -
Testing Gravity with CAMB and CosmoMC
Alireza Hojjati, Levon Pogosian, Gong-Bo Zhao,
arXiv:1106.4543 [astro-ph.CO], JCAP 1108:005,2011 -
Searching for modified growth patterns with tomographic surveys
Gong-Bo Zhao, Levon Pogosian, Alessandra Silvestri, Joel Zylberberg,
arXiv:0809.3791 [astro-ph], Phys. Rev. D 79, 083513
as well as the original CAMB paper and Cobaya paper.
Main Developers:
- Zhuangfei Wang (Email: zhuangfei_wang@sfu.ca)
- Alex Zucca (Email: alexzucca90@gmail.com)
Original Code Developers:
- Gong-Bo Zhao
- Alireza Hojjati
- Levon Pogosian
- Alessandra Silvestri
Repo created and maintained by Zhuangfei Wang. If you find any bugs in the code, please contact Zhuangfei Wang at zhuangfei_wang@sfu.ca .