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

Function coerce_boundary

dask/array/_array_expr/_overlap.py:824–834  ·  view source on GitHub ↗
(ndim, boundary)

Source from the content-addressed store, hash-verified

822
823
824def coerce_boundary(ndim, boundary):
825 default = "none"
826 if boundary is None:
827 boundary = default
828 if not isinstance(boundary, (tuple, dict)):
829 boundary = (boundary,) * ndim
830 if isinstance(boundary, tuple):
831 boundary = dict(zip(range(ndim), boundary))
832 if isinstance(boundary, dict):
833 boundary = {ax: boundary.get(ax, default) for ax in range(ndim)}
834 return boundary
835
836
837@derived_from(np.lib.stride_tricks)

Callers 2

trim_internalFunction · 0.70
overlapFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…