-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
random.choice doesn't allow float128 probs #6132
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
|
Is this still an issue? Open since 2015 with no comments. |
@ron819 it is relatively simple to run the code at the top of the issue to determine this is still not solved |
Force cast longdouble to double to allow longdoubles to be used as probabilities closes numpy#6132
Consensus in #18835 is that implicit conversion of unsafe types to float64 is a bad idea, and so raising is the right choice. |
Correctly implementing this within the current implementation of |
I think this is due to theI don't know whether this is considered a bug.same_kind
casting in numpy 1.10, andThe text was updated successfully, but these errors were encountered: