-
-
Notifications
You must be signed in to change notification settings - Fork 11k
missing invalid warning on nan comparisons? #11589
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
Can you try the 1.15.0 pre-release from pypi? |
No error thrown likewise after |
I can also repro this from a clean docker image (the manylinux one):
|
The warning logic was incomplete. See PR #11595. Arch must be compiling with a flag that forces the code path that emits the warning. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Comparisons to nan appears to fail to trigger an invalid warning in some installs:
import numpy as np; np.seterr(invalid="raise"); np.minimum(np.nan, 1)
(incorrectly) runs with no exception in a clean conda env with just python=3.6 and numpy=1.14.5 (on an Arch Linux system), or having pip-installed pypi's numpy 1.14.5 wheel with Arch Linux's system python (3.6).I'm a bit at loss of what could cause this discrepancy.
The text was updated successfully, but these errors were encountered: