make_function_task_class
make_function_task_class(
func: Callable ,
base: type[Task] = <class ‘dascore.workflow.task.Task’>,
version: str = 1.0,
skip_first: bool = False,
)-> ‘type[Task]’
Return a Task subclass whose fields are a function’s parameters.
Parameters
| Parameter | Description |
|---|---|
| func | The function the class stands for. |
| base |
The class to derive from; a patch function derives fromPatchProcessor rather than from Task itself.
|
| version | The version of the new class. |
| skip_first |
If True the first parameter is not made a field. It is the input the task is given when it runs, such as the patch a patch function operates on. |