Skip to content

Test cosmological models with Supernova and Quasar data

Notifications You must be signed in to change notification settings

kma-code/cosmological_tests

 
 

Repository files navigation

This is our code to (locally) sample the posterior distribution of cosmological and nuisance parameters. We include BAO, Supernova and Quasar data as well as data of the first CMB peak. With minor modifications, this can be run on a cluster. See the publication, arXiv:2002.01487.

To run the notebook Sample_Cosmo.ipynb, you will need the package emcee (version 3.0.0). Unfortunately, "pip install emcee" or "conda install -c conda-forge emcee" will install an older version that requires some hacks and the autocorrelation time cannot be calculated. Therefore, the best way to run this is to execute the following steps using anaconda:

  1. execute git clone https://github.com/MoPl90/cosmological_tests in your preferred directory

  2. conda create -n emcee3 numpy scipy jupyter matplotlib astropy tqdm h5py schwimmbad mpi4py

  3. conda activate emcee3

  4. conda install -c conda-forge corner

  5. git clone https://github.com/dfm/emcee.git

  6. cd emcee

  7. python setup.py install

  8. cd ../cosmological_tests

  9. jupyter-notebook Sample_Cosmo.ipynb or mpirun -np [number of parallel processes] python sample.py [data sets to include] [cosmological model]

Now the code should run!

The Supernova data is from the Joint Light curve analysis (Betoule et al., arXiv:1401.4064)

Quasar data courtesy of Elisabeta Lusso; analysis following Risaliti & Lusso, arXiv:1505.07118 and arXiv:1811.02590

BAO data: see list in arXiv:2002.01487.

CMB data: Planck18 distance priors from arXiv:1808.05724

About

Test cosmological models with Supernova and Quasar data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 70.6%
  • Python 29.4%