MCPcopy
hub / github.com/pydata/xarray / _get_chunk_slicer

Function _get_chunk_slicer

xarray/core/parallel.py:152–156  ·  view source on GitHub ↗
(dim: Hashable, chunk_index: Mapping, chunk_bounds: Mapping)

Source from the content-addressed store, hash-verified

150
151
152def _get_chunk_slicer(dim: Hashable, chunk_index: Mapping, chunk_bounds: Mapping):
153 if dim in chunk_index:
154 which_chunk = chunk_index[dim]
155 return slice(chunk_bounds[dim][which_chunk], chunk_bounds[dim][which_chunk + 1])
156 return slice(None)
157
158
159def subset_dataset_to_block(

Callers 2

subset_dataset_to_blockFunction · 0.85
map_blocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…