-
Notifications
You must be signed in to change notification settings - Fork 15
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
replace interp2d #74
Comments
@rpoleski I can do that, if it's still useful |
Following the tutorial in the link, In our case, since the grid is regularly spaced with len(x) = len(y) = 10 and len(z) = len(x)*len(y), where z is a (10,10) array obtained from the function get_ellip(x, y), the scipy function Changing from: @rpoleski please let me know if I can proceed with the RegularGridInterpolator function. |
What changes have you made to |
@rpoleski please check the changes in the last commit. Some lines to check the difference between the interpolations and to make the plot above are commented. |
Ok, you just replaced the old function with the new one. I thought there were more changes. In that case, this should be implemented. Please make a pull request with the changes in the main code. |
In SciPy v1.10 (repeased Jan 3, 2023)
interp2d()
(used only in pointlens.py) is deprecated and will be removed in v1.12 (probably Jan 2024).We have to replace it with
LinearNDInterpolator
orCloughTocher2DInterpolator
.Also see
https://gist.github.com/ev-br/8544371b40f414b7eaf3fe6217209bff
The text was updated successfully, but these errors were encountered: