method of dascore.io.tdms.core.Patch source

    self ,
    func: Callable[Patch, …, Patch] ,
    *args ,
    **kwargs ,
)-> ‘’Patch’’

Pipe the patch to a function.

This is primarily useful for maintaining a chain of patch calls for a function.


Parameter Description
func The function to pipe the patch. It must take a patch instance as the first argument followed by any number of positional or keyword arguments, then return a patch.
*args Positional arguments that get passed to func.
**kwargs Keyword arguments passed to func.