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

Method __call__

dask/array/ufunc.py:108–119  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

106 return repr(self._ufunc)
107
108 def __call__(self, *args, **kwargs):
109 dsks = [arg for arg in args if hasattr(arg, "_elemwise")]
110 if len(dsks) > 0:
111 for dsk in dsks:
112 result = dsk._elemwise(self._ufunc, *args, **kwargs)
113 if type(result) != type(NotImplemented):
114 return result
115 raise TypeError(
116 f"Parameters of such types are not supported by {self.__name__}"
117 )
118 else:
119 return self._ufunc(*args, **kwargs)
120
121 @derived_from(np.ufunc)
122 def outer(self, A, B, **kwargs):

Callers

nothing calls this directly

Calls 1

_elemwiseMethod · 0.45

Tested by

no test coverage detected