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

Method __init__

dask/array/_array_expr/_ufunc.py:86–95  ·  view source on GitHub ↗
(self, ufunc)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

derived_fromFunction · 0.90

Tested by

no test coverage detected