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

Method get_duck_array

xarray/core/indexing.py:2190–2192  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2188 return False
2189
2190 def get_duck_array(self) -> np.ndarray:
2191 all_coords = self._transform.generate_coords(dims=self._dims)
2192 return np.asarray(all_coords[self._coord_name])
2193
2194 def _oindex_get(self, indexer: OuterIndexer):
2195 expanded_indexer_ = OuterIndexer(expanded_indexer(indexer.tuple, self.ndim))

Callers

nothing calls this directly

Calls 1

generate_coordsMethod · 0.80

Tested by

no test coverage detected