MCPcopy Create free account
hub / github.com/pydata/xarray / chunks

Method chunks

xarray/core/dataset.py:2475–2491  ·  view source on GitHub ↗

Mapping from dimension names to block lengths for this dataset's data. If this dataset does not contain chunked arrays, the mapping will be empty. Cannot be modified directly, but can be modified by calling .chunk(). Same as Dataset.chunksizes, but maintained for

(self)

Source from the content-addressed store, hash-verified

2473
2474 @property
2475 def chunks(self) -> Mapping[Hashable, tuple[int, ...]]:
2476 """
2477 Mapping from dimension names to block lengths for this dataset's data.
2478
2479 If this dataset does not contain chunked arrays, the mapping will be empty.
2480
2481 Cannot be modified directly, but can be modified by calling .chunk().
2482
2483 Same as Dataset.chunksizes, but maintained for backwards compatibility.
2484
2485 See Also
2486 --------
2487 Dataset.chunk
2488 Dataset.chunksizes
2489 xarray.unify_chunks
2490 """
2491 return get_chunksizes(self.variables.values())
2492
2493 @property
2494 def chunksizes(self) -> Mapping[Hashable, tuple[int, ...]]:

Callers

nothing calls this directly

Calls 2

get_chunksizesFunction · 0.90
valuesMethod · 0.45

Tested by

no test coverage detected