Ufunc

class of dascore.workflow.builtin
inherits from: Task, DascoreBaseModel, pydantic.main.BaseModel
source

Ufunc(
    name: str ,
    method: str = call,
    reversed: bool = False,
    operands: tuple[Any, …] = (),
    kwargs: dict[str, Any] = ,
)-> None

A numpy ufunc applied to a patch.

Parameters

Parameter Description
name The ufunc’s name, as numpy spells it: "add", "multiply".
method Which way it was applied – "__call__", "reduce",
"accumulate" – since a reduction is not the operation the plain
call is.
reversed Whether the patch was the right operand, so that 1 - patch is
not recorded as patch - 1.
operands What the other operands were, for the ones which are not patches.
A patch operand is not written here: it is a parent, and the ids
already say so.
kwargs Whatever else the call carried.