captured_operation

function of dascore.core.processor source

captured_operation(
    method ,
    patch ,
    *args ,
    **kwargs ,
)-> ‘PatchProcessor’

Return the operation a patch method would run, without running it.

A method’s body resolves its arguments and builds its processor, so calling it is the one way to get the processor a call means. Nothing is computed and the patch is not changed.

Raises

ParameterError If the method is not one operation: a function which is not a processor, or a method which runs several.