MCPcopy Index your code
hub / github.com/pydata/xarray / dims

Method dims

xarray/core/datatree.py:788–797  ·  view source on GitHub ↗

Mapping from dimension names to lengths. Cannot be modified directly, but is updated when adding new variables. Note that type of this object differs from `DataArray.dims`. See `DataTree.sizes`, `Dataset.sizes`, and `DataArray.sizes` for consistently named propertie

(self)

Source from the content-addressed store, hash-verified

786
787 @property
788 def dims(self) -> Mapping[Hashable, int]:
789 """Mapping from dimension names to lengths.
790
791 Cannot be modified directly, but is updated when adding new variables.
792
793 Note that type of this object differs from `DataArray.dims`.
794 See `DataTree.sizes`, `Dataset.sizes`, and `DataArray.sizes` for consistently named
795 properties.
796 """
797 return Frozen(self._dims)
798
799 @property
800 def sizes(self) -> Mapping[Hashable, int]:

Callers

nothing calls this directly

Calls 1

FrozenClass · 0.90

Tested by

no test coverage detected