register_implementation

function of dascore.workflow.processor source

register_implementation(
    name: str ,
    cls: type[PatchProcessor] ,
)-> ‘None’

Say that a hand-written class is what a patch function’s name means.

One name has one implementation: after this, fn.op(...) returns an instance of cls rather than a PatchOp, so there is a single code path whether the operation was reached by name or by class.

Parameters

Parameter Description
name The patch function’s name, as a patch answers to it.
cls The class which implements it.