Page 1 of 1

python CAMB: changing constants at runtime

Posted: July 25 2019
by Graeme Addison
Is there any way to change the values of constants (e.g., Thomson cross-section, c, etc.) without recompiling CAMB? I see a python camb file [...]/site-packages/camb/constants.py that seems to be read into camb.constants when I import camb but the values in camb.constants don't seem to make any difference to e.g. power spectra calculations.

Re: python CAMB: changing constants at runtime

Posted: July 26 2019
by Antony Lewis
No, you can't change values of constants that are defined as "parameter" in Fortran (they are removed at compile time).