-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
DEP: deprecate scalar conversions for arrays with ndim>0
#21846
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
Conversation
Co-authored-by: Eric Wieser <[email protected]>
Co-authored-by: Eric Wieser <[email protected]>
ndim>0
If I recall correctly the ArrayAPI always requires indexing, so this deprecation brings us closer to the ArrayAPI. It seems 41 commits is a bit excessive, we could squash-merge it to 1 when merging, or is there a reason to preserve some of the history here? I think we should try to merge this early in the 1.24 version cycle, to see how much noise it creates downstream. |
squash-merge is fine with me |
See relevant comment
|
Related Issues/PRs
Resolves #10615 (stalled)
Fixes #10404
Changes
PR #10615: Raises deprecation warning for automatic conversion of
size=1
ndarray
instances to numpy scalars, e.g.This PR: Reconciles
main
and fixes tests.Comments
Co-authored by @nschloe