(dim: Hashable, chunk_index: Mapping, chunk_bounds: Mapping)
| 150 | |
| 151 | |
| 152 | def _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 | |
| 159 | def subset_dataset_to_block( |
no outgoing calls
no test coverage detected
searching dependent graphs…