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

Method get_duck_array

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

Source from the content-addressed store, hash-verified

967 self.array = _wrap_numpy_scalars(as_indexable(array))
968
969 def get_duck_array(self):
970 duck_array = self.array.get_duck_array()
971 # ensure the array object is cached in-memory
972 self.array = as_indexable(duck_array)
973 return duck_array
974
975 async def async_get_duck_array(self):
976 duck_array = await self.array.async_get_duck_array()

Callers

nothing calls this directly

Calls 2

as_indexableFunction · 0.90
get_duck_arrayMethod · 0.45

Tested by

no test coverage detected