Add dask_awkward.Array.__array_function__
to dispatch NumPy functions to their dask-awkward equivalents
#490
Labels
enhancement
New feature or request
dask_awkward.Array
currently has__awkward_function__
to dispatchak.*
functions to their equivalentdak.*
functions__array_ufunc__
to properly handle NumPy ufuncs via NEP-13 (Awkward and dask-awkward equivalents are not explicitly implemented)but no
__array_function__
to dispatchnp.*
functions to their equivalentdak.*
functions via NEP-18.For this reason, an eager or Coffea 0.7 analysis that is cavalier about the distinction between
np.where
andak.where
, for example, will have to be changed by hand todak.where
, instead of automatically finding it.There are 23 functions that would benefit from this immediately, because of the 38
np.*
functions that Awkward overrides,dask-awkward is only missing 15 of them:
(4 of which were just added in scikit-hep/awkward#3053.)
The text was updated successfully, but these errors were encountered: