python CAMB: changing constants at runtime
-
- Posts: 36
- Joined: July 17 2014
- Affiliation: Johns Hopkins University
python CAMB: changing constants at runtime
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.
-
- Posts: 1943
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: python CAMB: changing constants at runtime
No, you can't change values of constants that are defined as "parameter" in Fortran (they are removed at compile time).