| 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) |
no outgoing calls
searching dependent graphs…