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

Method variables

xarray/core/datatree.py:756–763  ·  view source on GitHub ↗

Low level interface to node contents as dict of Variable objects. This dictionary is frozen to prevent mutation that could violate Dataset invariants. It contains all variable objects constituting this DataTree node, including both data variables and coordinates.

(self)

Source from the content-addressed store, hash-verified

754
755 @property
756 def variables(self) -> Mapping[Hashable, Variable]:
757 """Low level interface to node contents as dict of Variable objects.
758
759 This dictionary is frozen to prevent mutation that could violate
760 Dataset invariants. It contains all variable objects constituting this
761 DataTree node, including both data variables and coordinates.
762 """
763 return Frozen(self._data_variables | self._coord_variables)
764
765 @property
766 def attrs(self) -> dict[Hashable, Any]:

Callers

nothing calls this directly

Calls 1

FrozenClass · 0.90

Tested by

no test coverage detected