kernel_for

method of dascore.core.processor.PatchProcessor source

kernel_for(
    backend: str ,
)

Return the kernel this class runs for a backend, or None.

Each class in the MRO is asked for a kernel registered for the backend, then numpy_kernel for NumPy or kernel for other arrays, with a NumPy fallback if needed, before moving up: a subclass which wrote its own kernel means it, and a backend kernel registered against its parent must not answer for it. A backend other than NumPy first loads its dascore.kernels entry points, once.