-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
running numpy functions on xarray objects #3917
Labels
topic-arrays
related to flexible array support
Comments
I think this is probably a good idea, assuming we figure out the type casting hierarchy challenge. Right now people often check for the existence of |
This was referenced Apr 15, 2020
Closed
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the
pint
integration tests I tried to also test calling numpy functions on xarray objects (we provide methods for all of them).Some of these functions, like
numpy.median
,numpy.searchsorted
andnumpy.clip
, depend on__array_function__
(i.e. not__array_ufunc__
) to dispatch. However, neitherDataset
norDataArray
(norVariable
, I think?) define these protocols (see #3643).Should we define
__array_function__
on xarray objects?The text was updated successfully, but these errors were encountered: