-
Notifications
You must be signed in to change notification settings - Fork 8
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
Re-introduce __array__ with a warning #91
Conversation
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.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no suggestions.
@rgommers mentioned this might still be too hard for SciPy in #67 so waiting for feedback here CC @mdhaber @lucascolley |
I don't know whether silencing the warning is easier than fixing it. @lucascolley do you think we will be able to get scipy/scipy#21835 working before we need the features from |
I don't think I have the capacity to push it through immediately, but maybe someone can follow through on the idea. |
Removing it caused issues for SciPy (data-apis#67). I have left the flag in to make it easy to remove it in the future. I also considered raising a warning in __array__, but this is also difficult to handle data-apis#91
FWIW I do think it should be removed. But giving consumer libraries some time to adapt will be helpful. |
I'm happy with this being re-enabled while we figure out how this should be done. Maybe it could be controlled by an environment variable so we can test with |
What would help is some clarity on what the problems are. Is there something that should be added to the standard and/or some changes that should be made to NumPy to make this easier? I do know that for array-api-strict itself I found that I had to do some workarounds to make |
In SciPy the problem is that we punted on using DLPack by just using |
We'll probably figure this out when we're making the change to |
Going to discuss |
#67