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

Function wrap

dask/array/tests/test_dispatch.py:17–26  ·  view source on GitHub ↗

Wrap a function.

(func_name)

Source from the content-addressed store, hash-verified

15
16
17def wrap(func_name):
18 """
19 Wrap a function.
20 """
21
22 def wrapped(self, *a, **kw):
23 a = getattr(self.arr, func_name)(*a, **kw)
24 return a if not isinstance(a, np.ndarray) else type(self)(a)
25
26 return wrapped
27
28
29def dispatch_property(prop_name):

Callers 1

EncapsulateNDArrayClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected