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

Method async_get_duck_array

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

Source from the content-addressed store, hash-verified

973 return duck_array
974
975 async def async_get_duck_array(self):
976 duck_array = await self.array.async_get_duck_array()
977 # ensure the array object is cached in-memory
978 self.array = as_indexable(duck_array)
979 return duck_array
980
981 def _oindex_get(self, indexer: OuterIndexer):
982 return type(self)(_wrap_numpy_scalars(self.array.oindex[indexer]))

Callers 1

test_async_wrapperMethod · 0.95

Calls 2

as_indexableFunction · 0.90
async_get_duck_arrayMethod · 0.45

Tested by 1

test_async_wrapperMethod · 0.76