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

Improve docs and add test case for RegularGridInterpolator #22138

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

timmens
Copy link

@timmens timmens commented Jun 27, 2024

Aligns the documentation of the fill_value argument of RegularGridInterpolator with that of scipy, and adds a corresponding test case.

Solves discussion #22031.


What is the newly documented behavior?

If fill_value = None is passed to RegularGridInterpolator, extrapolation outside the domain is performed.

Is the newly documented behavior tested?

Yes. The current test of JAX's RegularGridInterpolator already used validation points outside the domain. I've adjusted the test such that a fill_value of None is also compared between the scipy and JAX implementations.

@jakevdp jakevdp self-assigned this Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants