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

Method chunksizes

xarray/core/datatree.py:2571–2589  ·  view source on GitHub ↗

Mapping from group paths to a mapping of chunksizes. If there's no chunked data in a group, the corresponding mapping of chunksizes will be empty. Cannot be modified directly, but can be modified by calling .chunk(). See Also -------- DataTree.chun

(self)

Source from the content-addressed store, hash-verified

2569
2570 @property
2571 def chunksizes(self) -> Mapping[str, Mapping[Hashable, tuple[int, ...]]]:
2572 """
2573 Mapping from group paths to a mapping of chunksizes.
2574
2575 If there's no chunked data in a group, the corresponding mapping of chunksizes will be empty.
2576
2577 Cannot be modified directly, but can be modified by calling .chunk().
2578
2579 See Also
2580 --------
2581 DataTree.chunk
2582 Dataset.chunksizes
2583 """
2584 return Frozen(
2585 {
2586 node.path: get_chunksizes(node.variables.values())
2587 for node in self.subtree
2588 }
2589 )
2590
2591 def chunk(
2592 self,

Callers

nothing calls this directly

Calls 3

FrozenClass · 0.90
get_chunksizesFunction · 0.90
valuesMethod · 0.45

Tested by

no test coverage detected