compute

function of dascore.lazy.execute source

compute(
    array: ‘LazyArray’ ,
    box: ‘Box’ ,
)-> ‘np.ndarray’

Read what one box of a lazy array needs, and compute it.

Each step runs its processor’s NumPy kernel, and what it makes is checked against the dtype its metadata stated and the shape of the box. An empty box is returned without running anything.

Raises

PatchError If a step is still pending, or computed an array of another shape or dtype than its metadata stated.