-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Numpy 1.16 linspace fails for very large start stop values #13089
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproducing code example:
The following corner case works correctly with numpy 1.15.4 but raises an error with numpy 1.16.2
This was detected in a test with auto generated input using hypothesis to generate the input.
Error message:
Numpy/Python version information:
1.16.2 3.6.8 |Anaconda, Inc.| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)]
Details
This seems to happen when the number used is sufficiently large end up being represented
as an object dtype. This in turn means that delta will be a regular floating point number and not a numpy float. Therefore it does not have a
ndim
method. The 1.15 code looks different and does not require thendim
method to be defined.The text was updated successfully, but these errors were encountered: