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

Method __dask_graph__

xarray/namedarray/core.py:596–602  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

594 return normalize_token((type(self), self._dims, self.data, self._attrs or None))
595
596 def __dask_graph__(self) -> Graph | None:
597 if is_duck_dask_array(self._data):
598 return self._data.__dask_graph__()
599 else:
600 # TODO: Should this method just raise instead?
601 # raise NotImplementedError("Method requires self.data to be a dask array")
602 return None
603
604 def __dask_keys__(self) -> NestedKeys:
605 if is_duck_dask_array(self._data):

Callers

nothing calls this directly

Calls 1

is_duck_dask_arrayFunction · 0.90

Tested by

no test coverage detected