-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
array.nonzero(): Inconsistent behaviour #9304
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
Comments
Ouch, that is nasty. On my machine, that prints alternating |
Looks bad: if I add `array[benchmark].all()` before the print statement
(which should be just a noop), it starts always printing `True`.
.
This issue is not present in numpy 1.12.1, only on 1.13.0.
|
Added 13.1 milestone if this really is a regression in 13.0 we might want to try to address it, but will leave for chuck to decide on the schedule. |
In case it might help:
|
yeah there is a bug using the wrong dimension there, fix should be simple |
Git bisect says a16f16b --- not certain
though, because not fully reproducible.
|
it is a related one, the is_empty loop checks the wrong dimension |
fix in gh-9310 |
Uh oh!
There was an error while loading. Please reload this page.
Calling nonzero() on an array of 5 or more dimensions sometimes returns inconsistent values. The following example sometimes returns all True values, but often it doesn't.
Output:
The text was updated successfully, but these errors were encountered: