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

Method is_multi

xarray/core/indexes.py:1808–1812  ·  view source on GitHub ↗

Return True if ``key`` maps to a multi-coordinate index, False otherwise.

(self, key: Hashable)

Source from the content-addressed store, hash-verified

1806 return unique_indexes
1807
1808 def is_multi(self, key: Hashable) -> bool:
1809 """Return True if ``key`` maps to a multi-coordinate index,
1810 False otherwise.
1811 """
1812 return len(self._id_coord_names[self._coord_name_id[key]]) > 1
1813
1814 def get_all_coords(
1815 self, key: Hashable, errors: ErrorOptions = "raise"

Callers 2

_get_stack_indexMethod · 0.80
test_is_multiMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_is_multiMethod · 0.64