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

Method __init__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

derived_fromFunction · 0.90

Tested by

no test coverage detected