Skip to content

BUG: count_nonzero treats empty axis tuples strangely #9881

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

Merged
merged 1 commit into from
Oct 18, 2017

Conversation

eric-wieser
Copy link
Member

Fixes #9728

This bug was introduced with the axis keyword in #7177, likely as a misguided optimization.

Fixes numpy#9728

This bug was introduced with the `axis` keyword in numpy#7177, as a misguided optimization.
@charris
Copy link
Member

charris commented Oct 18, 2017

Gotta wonder if axis=() actually makes sense. OTOH, is already seems to be recognized by sum.

@charris
Copy link
Member

charris commented Oct 18, 2017

Thanks Eric.

@eric-wieser
Copy link
Member Author

Turns out this fixed a regression, restoring the behavior to pre- 3626d0c

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.

2 participants