Skip to content

Conversation

@paddyroddy
Copy link
Member

@paddyroddy paddyroddy commented Jan 23, 2026

Description

This PR fixes a subtle bug within apply_along_axis that causes the array passed to partial (in this case interp) to be outputted as a NumPy array causing a mismatch between this and array-api-strict. I wanted to test this, but really not sure how to do that.

Fixes: #996

Changelog entry

Fixed: apply_along_axis from XPAddtions now has consistent array types

Checks

  • Is your code passing linting?
  • Is your code passing tests?
  • Have you added additional tests (if required)?
  • Have you modified/extended the documentation (if required)?
  • Have you added a one-liner changelog entry above (if required)?

@paddyroddy paddyroddy self-assigned this Jan 23, 2026
@paddyroddy paddyroddy added bug Something isn't working array-api Work is related to the Array API labels Jan 23, 2026
@paddyroddy paddyroddy requested a review from connoraird January 23, 2026 17:27
Copy link
Contributor

@connoraird connoraird left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@paddyroddy paddyroddy merged commit 21ac3cf into main Jan 23, 2026
25 checks passed
@paddyroddy paddyroddy deleted the paddy/issue-996 branch January 23, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

array-api Work is related to the Array API bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XPAdditions.apply_along_axis fails with array_api_strict

3 participants