This PR addresses #567 to improve power spectrum tests. I have made the following changes to the module:
Added tau and YHe as parameters to fully specify base cosmology consistently between CLASS and CAMB. Note that currently only tau is accesible.
Added ability to explicitly specify neutrino masses. Currently in CAMB it is assumed that all the mass is in one neutrino, whilst CLASS can also deal with e.g. degenerate masses. This can easily be changed to be the same for both.
Clarified the Hubble units in the CAMB wrapper.
And implemented new / changed the tests such that both CLASS and CAMB are tested against a 'truth' cosmology which is calculated from CAMB, with separate tests for massive and massless neutrinos. We could do a lot of playing with accuracy settings here, both in terms of the rtol in the test and the accuracy settings within each Boltzmann code. Currently these are specified so that the tests pass with the default accuracy settings for each Boltzmann code. Thoughts welcome.
Description
This PR addresses #567 to improve power spectrum tests. I have made the following changes to the module:
tau
andYHe
as parameters to fully specify base cosmology consistently between CLASS and CAMB. Note that currently onlytau
is accesible.And implemented new / changed the tests such that both CLASS and CAMB are tested against a 'truth' cosmology which is calculated from CAMB, with separate tests for massive and massless neutrinos. We could do a lot of playing with accuracy settings here, both in terms of the rtol in the test and the accuracy settings within each Boltzmann code. Currently these are specified so that the tests pass with the default accuracy settings for each Boltzmann code. Thoughts welcome.
Merging will close #567.
Checklist