Chain of nodes.
This class allows to concatenate a list of nodes into a processing chain. When called with a dataset, it is sequentially fed through a nodes in the chain. A ChainNode may also be used as a generator. In this case, all nodes in the chain are treated as generators too, and the ChainNode behaves as a single big generator that recursively calls all embedded generators and yield the results.
A ChainNode behaves similar to a list container: Nodes can be appended, and the chain can be sliced like a list, etc ...
Notes
Available conditional attributes:
(Conditional attributes enabled by default suffixed with +)
Parameters : | nodes: list :
enable_ca : None or list of str
disable_ca : None or list of str
space: str, optional :
postproc : Node instance, optional
descr : str
|
---|
Append a node to the chain.
Parameters : | ds: Dataset :
startnode: int :
|
---|