Page 1 of 1

evolving dark energy in camb python

Posted: November 07 2018
by Gabriele Parimbelli
Good evening,

I couldn't find this topic anywhere else, sorry if it has already been discussed.

I am using CAMB version August 2018. I want to compute the linear matter power spectrum in a w0-wa cosmology.
This is possible by compiling with "EQUATIONS=equations_ppf" and then set 'w' and 'wa' parameters in the paramfile.

I don't see how I can do it from the Python wrapper. I only found the routine "camb.model.set_dark_energy()", which can only deal with a constant parameter of state (i.e. I can set w0 to any value I want but wa=0 default). Is it possible in fact?

Thanks,

Gabriele

Re: evolving dark energy in camb python

Posted: November 08 2018
by Antony Lewis
Use the "devel" branch of camb on github, this has full python support for switching dark energy models and setting general $w(z)$, see the docs.