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

Method _item_key_to_tuple

xarray/core/variable.py:609–613  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

607 return item
608
609 def _item_key_to_tuple(self, key):
610 if is_dict_like(key):
611 return tuple(key.get(dim, slice(None)) for dim in self.dims)
612 else:
613 return key
614
615 def _broadcast_indexes(self, key):
616 """Prepare an indexing key for an indexing operation.

Callers 1

_broadcast_indexesMethod · 0.95

Calls 2

is_dict_likeFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected