skypyproject / skypy

SkyPy: A package for modelling the Universe.
BSD 3-Clause "New" or "Revised" License
117 stars 38 forks source link

TST: Improve power spectrum testing #567

Open itrharrison opened 2 years ago

itrharrison commented 2 years ago

The current test of classy power spectra fails, due to the interpolation creating >% level errors with respect to the previous function implementation, depending on the redshift.

We need to decide how to define a 'truth' power spectrum in order to create test data to validate which, if either of these is more correct.

This would probably require:

itrharrison commented 2 years ago

Two relevant resources: https://github.com/LSSTDESC/CCL/blob/master/benchmarks/test_camb_class_consistent.py https://github.com/xzackli/Cosmology-Notebooks/blob/master/CLASS%20vs.%20CAMB.ipynb