Pipeline
- class gpype.backend.pipeline.Pipeline[source]
Bases:
PipelineBrain-Computer Interface pipeline for real-time data processing.
Extends ioiocore Pipeline for BCI applications with automatic logging to platform-specific directories. Manages node lifecycle, data flow connections, and real-time execution of interconnected processing nodes.
- connect(source, target)[source]
Connect two nodes to establish data flow in the pipeline. Nodes are automatically added to pipeline if not already present.
- start()[source]
Start the pipeline and begin real-time data processing.
Initiates execution of all nodes according to their configured connections and timing. Runs continuously until stop() is called. This method is non-blocking.
- stop()[source]
Stop the pipeline and terminate all data processing.
Gracefully shuts down all nodes and cleans up resources including threads, file handles, and hardware connections. Always call stop() before program termination to ensure proper cleanup, especially when using hardware interfaces.