baudren / montepython_public

Public repository for the Monte Python Code
MIT License
65 stars 115 forks source link

Is there a way of printing out the parameters Montepython uses? #49

Open AdriPos opened 8 years ago

AdriPos commented 8 years ago

Hi all,

I'm using Montepython to estimate the cosmological parameters through the density angular power spectrum (dCl). I've discovered that the angular spectrum that I get from Montepython is not exactly equal to the one I get directly from Class (I mean, fixing all the parameters to the same values). There's a 3% difference.

I'm afraid this difference can be due to the fact that Montepython might be using a set of parameters that are slightly different respect to the set I give to Class. My question is then: is there a way of printing out the values of the parameters Montepython actually uses?

Many thanks, Adriana

ThomasTram commented 8 years ago

Hi,

you can add

data.cosmo_arguments['write parameters'] = 'yes'

to your parameter file and create a folder named output in your montepython folder. Then you will get a file output/parameters.ini which you can use in CLASS directly.

Cheers, Thomas

AdriPos commented 8 years ago

It works!! Actually I had already tried with data.cosmo_arguments['write parameters'] = 'yes' but without creating the output folder, so it gave me error :)

Thank you so much, Adriana

ShazAlvi commented 4 years ago

Hi AdriPos. Were you able to figure out the problem that you were having with the difference between the power spectra, dCl? I am facing a similar problem but unable to figure it out. Thanks.