LazyOperationError

class of dascore.exceptions
inherits from: IncompatiblePatchError, PatchError, DASCoreError, Exception, BaseException
source

Raised when something cannot be done while data stay lazy.

The lazy backend never reads the data behind the caller’s back, so an operation with no chunk contract is refused rather than loaded for, and so are a read, a fill and a merge which cannot be lazy. Calling Patch.load first reads a patch’s data into memory, and the numpy_fallback setting can allow any of these: "warn" reads with a warning, "ignore" without one. Arithmetic on a lazy patch, NumPy functions of one, rolling, the figures and stacking a spool of them are refused whatever the setting.