Skip to content

Conversation

@Enderdead
Copy link
Contributor

This PR fixes the bad behavior reported in scipy/scipy#23929 when ndim=3.

It removes delegation when ndim > 2 and adds additional tests.
These tests reproduce the issue while avoiding input arrays of size 1.

I'm not entirely happy with these new tests, but they provide a reasonable starting point for further iteration.

Feedback is welcome.

@lucascolley lucascolley self-requested a review November 6, 2025 21:50
@lucascolley lucascolley added the bug Something isn't working label Nov 6, 2025
@lucascolley lucascolley added this to the 0.9.1 milestone Nov 7, 2025
Copy link
Member

@lucascolley lucascolley left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

I wonder whether, rather than checking for exact equality in all of these tests, we should just check for expected shapes? Probably good to still keep one sanity-check test that we aren't unexpectedly modifying the values, but otherwise the tests are quite verbose.

Thoughts @Enderdead ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants