apply

method of dascore.lazy.contract.ChunkContract source

apply(
    self ,
    run: collections.abc.Callable[Any, Any] ,
    data ,
    box: tuple[<class ’slice, …] ,
    needed: tuple[<class ’slice, …] ,
)

Return the output box, computed from the input it needs.

Parameters

Parameter Description
run The operation’s kernel, taking the data alone.
data The input over needed.
box The box of the output wanted.
needed What needs
returned for box.