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

Method _item_key_to_dict

xarray/core/dataarray.py:871–875  ·  view source on GitHub ↗
(self, key: Any)

Source from the content-addressed store, hash-verified

869 )
870
871 def _item_key_to_dict(self, key: Any) -> Mapping[Hashable, Any]:
872 if utils.is_dict_like(key):
873 return key
874 key = indexing.expanded_indexer(key, self.ndim)
875 return dict(zip(self.dims, key, strict=True))
876
877 def _getitem_coord(self, key: Any) -> Self:
878 from xarray.core.dataset_utils import _get_virtual_variable

Callers 2

__getitem__Method · 0.95
__setitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected