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

Method handle_nonmatching_names

dask/array/core.py:1736–1754  ·  view source on GitHub ↗
(func, args, kwargs)

Source from the content-addressed store, hash-verified

1734 import dask.array as module
1735
1736 def handle_nonmatching_names(func, args, kwargs):
1737 if func not in _HANDLED_FUNCTIONS:
1738 warnings.warn(
1739 "The `{}` function is not implemented by Dask array. "
1740 "You may want to use the da.map_blocks function "
1741 "or something similar to silence this warning. "
1742 "Your code may stop working in a future release.".format(
1743 func.__module__ + "." + func.__name__
1744 ),
1745 FutureWarning,
1746 )
1747 # Need to convert to array object (e.g. numpy.ndarray or
1748 # cupy.ndarray) as needed, so we can call the NumPy function
1749 # again and it gets the chance to dispatch to the right
1750 # implementation.
1751 args, kwargs = compute(args, kwargs)
1752 return func(*args, **kwargs)
1753
1754 return _HANDLED_FUNCTIONS[func](*args, **kwargs)
1755
1756 # First, verify that all types are handled by Dask. Otherwise, return NotImplemented.
1757 if not all(

Callers

nothing calls this directly

Calls 2

computeFunction · 0.90
funcFunction · 0.70

Tested by

no test coverage detected