-
-
Notifications
You must be signed in to change notification settings - Fork 11k
BUG: nan's yield warnings in sign, greater_equal, and elsewhere #8945
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
Does not reproduce on Windows 7 under 1.14.2/Python 2.7.15. See my closure of #8230. |
I'm afraid it DOES reproduce under my numpy 1.14.2/Python 2.7.15:
|
I concur that sign should not flag nan's since the docs explain it returns nan for nan input. |
I can report this also happens with Windows 64bit and numpy 1.16.4 / Python 3.7.4 |
We're seeing this too in our astropy testing - on windows only. |
Remove unused code as follow up of astropy#9582 Handle failures cased by numpy/numpy#8945
Remove unused code as follow up of astropy#9582 Handle failures cased by numpy/numpy#8945
The warning doesn't occur in |
I believe sign should handle NaN's silently, but it yields a warning:
I also see similar warnings with greater_equal, less_equal, and absolute in a call to matplotlib symlog:
Windows 7 x64
Anaconda 4.3.1+ (custom to bring in np 1.12)
Python 2.7.13
numpy 1.12.1
This may be related to #8230, which suggests this is unique to Windows and Python 2.7, and #7440. The latter suggests it is a 32-bit problem but my environment is 64-bit. I don't think this was an issue with an earlier version of numpy, but I'm not sure of the prior version I used. It couldn't be more than a couple of years old.
The text was updated successfully, but these errors were encountered: