MCPcopy Create free account
hub / github.com/dask/dask / __init__

Method __init__

dask/array/ufunc.py:83–92  ·  view source on GitHub ↗
(self, ufunc)

Source from the content-addressed store, hash-verified

81 }
82
83 def __init__(self, ufunc):
84 if not isinstance(ufunc, (np.ufunc, da_frompyfunc)):
85 raise TypeError(
86 "must be an instance of `ufunc` or "
87 f"`da_frompyfunc`, got `{type(ufunc).__name__}"
88 )
89 self._ufunc = ufunc
90 self.__name__ = ufunc.__name__
91 if isinstance(ufunc, np.ufunc):
92 derived_from(np)(self)
93
94 def __dask_tokenize__(self):
95 return self.__name__, normalize_token(self._ufunc)

Callers

nothing calls this directly

Calls 1

derived_fromFunction · 0.90

Tested by

no test coverage detected