from_call

method of dascore.workflow.processor.PatchOp source

from_call(
    func ,
    args: <class ‘tuple = (),
    kwargs: dict | None[<class ’dict, None] = None,
)-> ’Task’

Return the operation a call to a patch function is.

Parameters

Parameter Description
func The patch function, as decorated.
args The positional arguments of the call, without the patch.
kwargs The keyword arguments of the call.

Returns

A PatchOp, or an instance of the class registered for this name.