The background equations are also used in derivs() for the perturbations. However, if the background Einstein equation changes, usually the perturbed one does as well, so you'd need to modify the perturbation equations consistently anyway. Depending on your particular model, and what outputs you want to calculate, you'll have to go through the code checking relevant things that have changed.
Statistics: Posted by Antony Lewis — February 12 2024