Skip to content

Conversation

lucascolley
Copy link
Member

Reference issue

Towards gh-21280

What does this implement/fix?

This test was not written portably in gh-21150. This PR fixes that.

Additional information

Technically we don't need the extra array_namespace call for xp.newaxis as it is just an alias for None, but I figured we may as well use it to write idiomatically.

@github-actions github-actions bot added scipy.ndimage maintenance Items related to regular maintenance tasks labels Jul 29, 2024
@lucascolley lucascolley added this to the 1.15.0 milestone Jul 29, 2024
@lucascolley
Copy link
Member Author

I believe an alternative to this PR is to use the array_api_compat-wrapped asarray which should be able to handle the [x] syntax for adding a new axis. Not sure which is preferable.

@ev-br
Copy link
Member

ev-br commented Jul 29, 2024

LGTM assuming CI comes back happy.

@ev-br ev-br changed the title TST: interpolate: unskip test_boundary_spline_accuracy for torch TST: ndimage: unskip test_boundary_spline_accuracy for torch Jul 29, 2024
@j-bowhay j-bowhay merged commit 2050d49 into scipy:main Jul 29, 2024
39 checks passed
@lucascolley lucascolley deleted the interpolation-torch branch July 29, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.ndimage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants