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 interp2d #383

Closed
JannisNe opened this issue Aug 1, 2024 · 2 comments
Closed

Deprecation of interp2d #383

JannisNe opened this issue Aug 1, 2024 · 2 comments
Labels
dependencies Pull requests that update a dependency file warning

Comments

@JannisNe
Copy link
Collaborator

JannisNe commented Aug 1, 2024

Lately seeing this deprecation warning:

DeprecationWarning: interp2d is deprecated in SciPy 1.10 and will be removed in SciPy 1.14.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.

For more details see
https://scipy.github.io/devdocs/notebooks/interp_transition_guide.html

This affects StandardLLH.create_acceptance_function(). SHould be replaced as suggested in the warning.

@JannisNe JannisNe added dependencies Pull requests that update a dependency file warning labels Aug 1, 2024
@mlincett
Copy link
Collaborator

Ehe, this is there since #270

I assume replacing with RectBivariateSpline should be painless.

@JannisNe
Copy link
Collaborator Author

Ok, then closing because duplicate of #270

@JannisNe JannisNe closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file warning
Projects
None yet
Development

No branches or pull requests

2 participants