[docs]classEventsNode(BaseNode):""" Class for regular nodes of a PreprocessingGraph. Notes ----- See :doc:`Preprocessing user guide</user_guides/preprocessing>` for the details. See Also -------- .PreprocessingGraph.add_node : Add a node to PreprocessingGraph. .PreprocessingGraph.combine : Run calculations of PreprocessingGraph. .MergeNode : Merging nodes of a PreprocessingGraph. """processor:DataProcessorevents:Optional[EventstreamType]description:Optional[str]def__init__(self,processor:DataProcessor,description:Optional[str]=None)->None:super().__init__()self.processor=processorself.events=Noneself.description=descriptiondef__copy__(self)->EventsNode:returnEventsNode(processor=self.processor.copy(),description=self.description,)defcopy(self)->EventsNode:returnself.__copy__()
[docs]classMergeNode(BaseNode):""" Class for merging nodes of a PreprocessingGraph. Notes ----- See :doc:`Preprocessing user guide</user_guides/preprocessing>` for the details. See Also -------- .PreprocessingGraph.add_node : Add a node to PreprocessingGraph. .PreprocessingGraph.combine : Run calculations of PreprocessingGraph. .EventsNode : Regular nodes of a PreprocessingGraph. """events:Optional[EventstreamType]description:Optional[str]def__init__(self,description:Optional[str]=None)->None:super().__init__()self.events=Noneself.description=descriptiondef__copy__(self)->MergeNode:returnMergeNode(description=self.description,)defcopy(self)->MergeNode:returnself.__copy__()