Maintenance will be performed on git.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 25 March 2025 starting at approximately 8:30am PDT. It is expected to take around 30 minutes and there will be several periods of downtime throughout the maintenance. Please address any comments, concerns, or questions to the helpdesk.
Perhaps the function should just suppress this warning. The overflow occurs because 3**f blows up at high frequencies -- where this noise is negligible.
If you prefer, the overflow can be avoided by rescaling numerator and denominator by 3**-f. But it's harmless anyway (it is caught and set to Inf). The same thing happens in matgwinc, we just don't get a notice about it.
The warning is not a workaround; it's just coming from numpy. The way to avoid is precisely to do what @christopher.wipf is suggesting to rescale.
I certainly agree that the warning is annoying and we should get rid of it. But I think we can just suppress it right around where we know it should be showing up and we're ok with it.
Ah. I'm not sure what we can do to "fix" the overflow though. The noise is dropping so fast that I don't see how we can every represent the true value at the top frequencies. As Chris points out, it is actually doing the "right" thing, by setting the 3**f values to Inf, which then go to zero when inverted. I'm not sure it's worth putting too much time into.