Open dkirkby opened 10 years ago
Catch any std::runtime_error
when fitting for a scan-point and keep going (saving the initial best-fit parameter values updated for this scan point and a chisq value of zero).
A better solution might be to make the getMultipole
integrator more robust. To be revisited if this continues to be a problem (after applying reasonable priors on beta, etc).
TODO: Print number of failed fits at the end of the scan.
A k-space model can fail if the 1D k-space multipole integral fails. Nicolas has seen an example of this in a chisq scan. Currently this integral is done using
integrateSmooth
incosmo/TransferFunctionPowerSpectrum.cc
:Should catch the resulting
cosmo::RuntimeError
and give a more useful error message.