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

MAINT: stats.kruskal: fix no-arg behavior w/ SCIPY_ARRAY_API=1 #20663

Merged
merged 2 commits into from
May 8, 2024

Conversation

mdhaber
Copy link
Contributor

@mdhaber mdhaber commented May 8, 2024

Reference issue

Closes gh-20661

What does this implement/fix?

Fixes the failing test test_axis_nan_policy_decorated_positional_args when SCIPY_ARRAY_API=1. Changes to low-level stats private methods have created the same sort failure twice (first due to adding array API support to _get_nan, now due to adding support to _broadcast_arrays), so I've added a similar test in test_stats that will run on the array API job regularly.

@mdhaber mdhaber added scipy.stats maintenance Items related to regular maintenance tasks labels May 8, 2024
@mdhaber mdhaber requested a review from tylerjereddy May 8, 2024 02:13
@github-actions github-actions bot added the CI Items related to the CI tools such as CircleCI, GitHub Actions or Azure label May 8, 2024
@tylerjereddy tylerjereddy added this to the 1.14.0 milestone May 8, 2024
Copy link
Contributor

@tylerjereddy tylerjereddy left a comment

Choose a reason for hiding this comment

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

Thanks Matt, CI is green and I confirmed this fixes the issue for me locally.

Since the patch is small and only adds a new test instead of modifying old tests, I don't think it is too controversial for non-stats expert to merge.

@tylerjereddy tylerjereddy merged commit 17a3aa0 into scipy:main May 8, 2024
31 checks passed
@mdhaber
Copy link
Contributor Author

mdhaber commented May 8, 2024

Thanks @tylerjereddy. I agree that it didn't need another stats opinion since it really doesn't involve the test itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Items related to the CI tools such as CircleCI, GitHub Actions or Azure maintenance Items related to regular maintenance tasks scipy.stats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MAINT, TST: failure in test_axis_nan_policy_decorated_positional_args with array API
2 participants