Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation of scipy.interpolate.interp2d #270

Open
mlincett opened this issue Mar 27, 2023 · 0 comments
Open

Deprecation of scipy.interpolate.interp2d #270

mlincett opened this issue Mar 27, 2023 · 0 comments
Labels

Comments

@mlincett
Copy link
Collaborator

From current unit testing output:

DeprecationWarning: `interp2d` is deprecated!
`interp2d` is deprecated in SciPy 1.10 and will be removed in SciPy 1.12.0.
For legacy code, nearly bug-for-bug compatible replacements are
`RectBivariateSpline` on regular grids, and `bisplrep`/`bisplev` for
scattered 2D data.
In new code, for regular grids use `RegularGridInterpolator` instead.
For scattered data, prefer `LinearNDInterpolator` or
`CloughTocher2DInterpolator`.

Here are the occurrences:

flarestack/core/llh.py:        f = scipy.interpolate.interp2d(dec_bins, gamma_bins, acc.T, kind="linear")
flarestack/icecube_utils/reference_sensitivity.py:    sens_ref = interp2d(np.array(sindecs), np.array(gammas), np.log(sens.T))
flarestack/icecube_utils/reference_sensitivity.py:    disc_ref = interp2d(np.array(sindecs), np.array(gammas), np.log(disc.T))
flarestack/icecube_utils/reference_sensitivity.py:    sens_ref = interp2d(np.array(sindecs), np.array(gammas), np.log(sens.T))
flarestack/icecube_utils/reference_sensitivity.py:    sens_ref = interp2d(np.array(sindecs), np.array(gammas), np.log(sens.T))
flarestack/utils/percentile_SoB.py:    spline = scipy.interpolate.interp2d(x, y, np.log(ratio))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant