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

Function coerce_boundary

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

Source from the content-addressed store, hash-verified

825
826
827def coerce_boundary(ndim, boundary):
828 default = "none"
829 if boundary is None:
830 boundary = default
831 if not isinstance(boundary, (tuple, dict)):
832 boundary = (boundary,) * ndim
833 if isinstance(boundary, tuple):
834 boundary = dict(zip(range(ndim), boundary))
835 if isinstance(boundary, dict):
836 boundary = {ax: boundary.get(ax, default) for ax in range(ndim)}
837 return boundary
838
839
840@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