You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have run into some problems while executing remove_bao to smooth the plot with my code being basically the function remove_bao + the input file + some plots. The problem is similar to the one in #195: error: (m>k) failed for hidden m: fpcurf0:m=1
The data I have been using is CLASS generated data for the power spectrum.
Ah, I remember the P(k) de-wiggling algorithm issues, I worked on that many years ago and I agree they were never the most stable. I'm sorry you had problems with it. Luckily more recent P(k) analyses seem to have moved beyond this as a modelling method, but that also means the likelihood hasn't really been kept up to date (especially with the evolution of python/scipy) as we haven't seen any new data using a similar format. I seem to recall there are a few algorithms out there that can do it, but I don't know which work best, and it is entirely possible some of the other ones work better. Thank you for reporting back on an alternative way to do this, that could prove useful if anyone needs to revisit these old likelihoods or have new likelihoods that use de-wiggling. We always appreciate people reporting back on things like this, it's very helpful.
I have run into some problems while executing remove_bao to smooth the plot with my code being basically the function remove_bao + the input file + some plots. The problem is similar to the one in #195: error: (m>k) failed for hidden m: fpcurf0:m=1
The data I have been using is CLASS generated data for the power spectrum.
The main problem seems to be while detecting the roots in the bao feature. Investigating a little bit I have found that the roots method of the function sometimes misses roots (see the example in https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.UnivariateSpline.roots.html#scipy.interpolate.UnivariateSpline.roots). I have been able to reproduce some figures from some papers with the changes suggested in the link, to have
`
def remove_bao(k_in, pk_in):
# De-wiggling routine by Mario Ballardini
`
Idk if this is the appropriate way to let you know but hope this is helpful!!
The text was updated successfully, but these errors were encountered: