Common processing object.
A Node is an object the processes datasets. It can be called with a Dataset and returns another dataset with the results. In addition, a node can also be used as a generator. Upon calling generate() with a datasets it yields (potentially) multiple result datasets.
Node have a notion of space. The meaning of this space may vary heavily across sub-classes. In general, this is a trigger that tells the node to compute and store information about the input data that is “interesting” in the context of the corresponding processing in the output dataset.
Notes
Available conditional attributes:
(Conditional attributes enabled by default suffixed with +)
Methods
generate(ds) | Yield processing results. |
get_postproc() | Returns the post-processing node or None. |
get_space() | Query the processing space name of this node. |
reset() | |
set_postproc(node) | Assigns a post-processing node |
set_space(name) | Set the processing space name of this node. |
Parameters : | space: str, optional :
postproc : Node instance, optional
enable_ca : None or list of str
disable_ca : None or list of str
descr : str
|
---|
Methods
generate(ds) | Yield processing results. |
get_postproc() | Returns the post-processing node or None. |
get_space() | Query the processing space name of this node. |
reset() | |
set_postproc(node) | Assigns a post-processing node |
set_space(name) | Set the processing space name of this node. |
Yield processing results.
This methods causes the node to behave like a generator. By default it simply yields a single result of its processing – identical to the output of calling the node with a dataset. Subclasses might implement generators that yield multiple results.
Parameters : | ds: Dataset :
|
---|---|
Returns : | generator :
|
Returns the post-processing node or None.
Query the processing space name of this node.
Node to perform post-processing of results
Set the processing space name of this node.
Processing space name of this node