register_kernel

function of dascore.workflow.processor source

register_kernel(
    cls: type[PatchProcessor] ,
    backend: str ,
)

Say that a function is how an operation runs on one array backend.

Used as a decorator. The kernel takes the processor, the data, and both metadata objects, and returns an array.

Parameters

Parameter Description
cls The processor the kernel belongs to.
backend The backend it is for, as
backend_name spells
it – “numpy”, “cupy”, “dask”.