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

Method __init__

dask/array/_array_expr/_ufunc.py:36–42  ·  view source on GitHub ↗
(self, func, nin, nout)

Source from the content-addressed store, hash-verified

34 """A serializable `frompyfunc` object"""
35
36 def __init__(self, func, nin, nout):
37 self._ufunc = np.frompyfunc(func, nin, nout)
38 self._func = func
39 self.nin = nin
40 self.nout = nout
41 self._name = funcname(func)
42 self.__name__ = f"frompyfunc-{self._name}"
43
44 def __repr__(self):
45 return f"da.frompyfunc<{self._name}, {self.nin}, {self.nout}>"

Callers

nothing calls this directly

Calls 1

funcnameFunction · 0.90

Tested by

no test coverage detected