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

Method get_duck_array

xarray/backends/common.py:320–322  ·  view source on GitHub ↗
(self, dtype: np.typing.DTypeLike | None = None)

Source from the content-addressed store, hash-verified

318 raise NotImplementedError("Backend does not support asynchronous loading")
319
320 def get_duck_array(self, dtype: np.typing.DTypeLike | None = None):
321 key = indexing.BasicIndexer((slice(None),) * self.ndim)
322 return self[key] # type: ignore[index]
323
324 async def async_get_duck_array(self, dtype: np.typing.DTypeLike | None = None):
325 key = indexing.BasicIndexer((slice(None),) * self.ndim)

Callers 2

to_numpyFunction · 0.45
to_duck_arrayFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected