MCPcopy Index your code
hub / github.com/dask/dask / coerce

Function coerce

dask/array/_array_expr/_overlap.py:708–711  ·  view source on GitHub ↗
(xs, arg, fn)

Source from the content-addressed store, hash-verified

706 # Coerce depth and boundary arguments to lists of individual
707 # specifications for each array argument
708 def coerce(xs, arg, fn):
709 if not isinstance(arg, list):
710 arg = [arg] * len(xs)
711 return [fn(x.ndim, a) for x, a in zip(xs, arg)]
712
713 depth = coerce(args, depth, coerce_depth)
714 boundary = coerce(args, boundary, coerce_boundary)

Callers 1

map_overlapFunction · 0.70

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…