Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
FIX: remove __array__ method on BasicUnit#28744
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
The presence of this method causes the numpy float __mul__ to use itin numpy 2.1 which results in the units not being tagged as expected andthe example failing.
Sorry, I did this a while ago but forgot to actually open the PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This breaks the docs with NumPy 2.0.1.
QuLogic commentedAug 21, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
So the bisect points this tonumpy/numpy@682cd04 vianumpy/numpy#26904. Reading through the array API docs, it seems like setting |
The presence of this method causes the numpy floatmul to use it in numpy 2.1 which results in the units not being tagged as expected and the example failing.
PR summary
PR checklist