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

Class LazilyIndexedArrayNotComputable

xarray/tests/test_formatting.py:974–982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

972 from xarray.core.indexing import LazilyIndexedArray
973
974 class LazilyIndexedArrayNotComputable(LazilyIndexedArray):
975 def __array__(
976 self,
977 dtype: np.typing.DTypeLike | None = None,
978 /,
979 *,
980 copy: bool | None = None,
981 ) -> np.ndarray:
982 raise NotImplementedError("Computing this array is not possible.")
983
984 arr = LazilyIndexedArrayNotComputable(np.array([1, 2]))
985 var = xr.DataArray(arr)

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…