main.process_loop

mb_regression.main.process_loop(stop_event=threading.Event())

Processing loop for the multiband regression pipeline.

This function implements the main processing loop for real-time multiband regression. It connects to an LSL input stream, applies filtering using the bands set in the config, computes predictions using a trained model, and streams the results via LSL output. The configuration is loaded from the “./configs/config.toml” file.

Parameters

Name Type Description Default
stop_event threading.Event Threading event to signal when processing should stop. Default creates a new Event object. threading.Event()