-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Quantity __array_function__ updates #8884
Conversation
And deal better with NotImplementedError, if ndarray is present.
The only failure on numpy-dev is a fluke, an unrelated url one, I didn't think it was worth restarting. |
Would be nice to get this in to have a green numpy-dev CI job again. |
Yes, would be good to have numpy-dev working again (and move on with the follow-up PRs). It actually is not that tricky a PR... @adrn, @astrofrog? |
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.
Looks good! A minor non-code comment below regarding making sure we mention the numpy license, but feel free to merge once you've decided whether to do anything about that.
# cannot be used directly. Since it would be very costly to inspect all | ||
# arrays and then turn them back into a nested list, we just copy here the | ||
# second implementation, np.core.shape_base._block_slicing, since it is | ||
# shortest and easiest. |
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.
Maybe mention the license for NUMPY is in https://github.com/astropy/astropy/blob/master/licenses/NUMPY_LICENSE.rst (since we are copying code)
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.
Or maybe this could go at the top of the file somewhere since this is the case for several functions here
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.
Good, point. There are two locations, and I now rewrote the top to read
# Licensed under a 3-clause BSD style license. See LICENSE.rst except
# for parts explicitly labelled as being (largely) copies of numpy
# implementations; for those, see licenses/NUMPY_LICENSE.rst.
Note: this should only be merged if the
numpy-dev
travis run passes.Fixes recent failures for
histogram2d
,i0
, andblock
and adds support forpiecewise