Code

Lukas Hollenstein
IAS Institute of Applied SimulationAbout_Me.html
 

CosmoMC and CAMB with early dark energy and anisotropic stress

See here: http://cosmology.unige.ch/content/cosmomc-and-camb-early-dark-energy-and-anisotropic-stress


Python version of GetDist for CosmoMC

This replacement for GetDist generates Python/PyLab scripts for plotting posteriors next to the original Matlab and SM scripts. The code is based on Joe Zuntz’s GetDist_py, but improved and updated to match the May 2010 and Jan 2012 versions of CosmoMC.

Download
  GetDist_pyMay10.tar.gz or GetDist_pyJan12.tar.gz
and simply replace GetDist.f90 in the source directory (or edit the Makefile). Then you can add the following options to your distparams.ini:

want_PyLab_scripts = T
want_Matlab_scripts = T
want_Supermongo_scripts = F
want_PyLab_EPSfigs = F
want_PyLab_PDFfigs = T
want_PyLab_PNGfigs = F
want_grid_in_2D_contours = F
PyLab_shading_method = 2

The last option lets you choose how the shading of the 2D contours is done: only contourf() is used (0), or the edges left blank by contourf() are filled using contour() (1), or imshow() is used (2). Method 1 is closest to the Matlab result, method 2 is much more efficient in terms of file size.

I hope the rest of the options are self-explanatory. These default settings are assumed if you don’t specify anything in your distparams.ini.

All bug reports and suggestions very welcome. Lots of credit to Joe Zuntz for the first version :-) Thanks.

Links: cosmology codes

  1. CMB Boltzmann codes:
        CAMB, CLASS

  2. Likelihood sampling:
        CosmoMC, CosmoPMC
        MultiNest, ESNested

Code