(self, ufunc)
| 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) |
nothing calls this directly
no test coverage detected