import numpy as np
from dascore.workflow.builtin import Ufunc
added = Ufunc(name="add")
assert added.fingerprint != Ufunc(name="subtract").fingerprintbuiltin
The operations DASCore performs which are not patch functions.
Concatenating, stacking and applying a ufunc are things done to patches, but none of them is written as a @patch_function, so none has an op. They still have to be named and fingerprinted, because they are what advances a patch’s processing_id – hence one small Task each.
Anything which is a patch function needs nothing here: PatchOp already names it, which is why there is no Select in this module.
Examples
Classes
| Name | Description |
|---|---|
| ArrayFunc | A numpy array function applied to a patch. |
| Concatenate | Putting patches end to end along a dimension. |
| Stack | Adding patches together. |
| Ufunc | A numpy ufunc applied to a patch. |