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

Method handle_nonmatching_names

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

computeFunction · 0.90
funcFunction · 0.70

Tested by

no test coverage detected