Disallows any loading.
| 16 | |
| 17 | |
| 18 | class InaccessibleArray(utils.NDArrayMixin, ExplicitlyIndexed): |
| 19 | """Disallows any loading.""" |
| 20 | |
| 21 | def __init__(self, array): |
| 22 | self.array = array |
| 23 | |
| 24 | def get_duck_array(self): |
| 25 | raise UnexpectedDataAccess("Tried accessing data") |
| 26 | |
| 27 | def __array__( |
| 28 | self, dtype: np.typing.DTypeLike | None = None, /, *, copy: bool | None = None |
| 29 | ) -> np.ndarray: |
| 30 | raise UnexpectedDataAccess("Tried accessing data") |
| 31 | |
| 32 | def __getitem__(self, key): |
| 33 | raise UnexpectedDataAccess("Tried accessing data.") |
| 34 | |
| 35 | |
| 36 | class FirstElementAccessibleArray(InaccessibleArray): |
no outgoing calls
searching dependent graphs…