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

BUG: make handling of masked arrays more specific #148

Merged
merged 1 commit into from
Apr 5, 2024
Merged

Conversation

ev-br
Copy link
Member

@ev-br ev-br commented Apr 5, 2024

Only retry on a masked array if it actually has masked values.

Falls out for NumPy < 2.0 handling of stats.describe: otherwise the very presence of a masked array triggers an infinite loop terminating at the recursion limit.

Only retry on a masked array if it actually has masked values.
@ev-br
Copy link
Member Author

ev-br commented Apr 5, 2024

Would be nice to cook up a test for this without using stats.describe directly. Some day.

@ev-br ev-br merged commit 4dd6eea into main Apr 5, 2024
4 checks passed
@ev-br ev-br deleted the fix_masked branch April 5, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant