Python Examples

Python Installation

See the getting started repo for full scripts. For python, we use 3.8.5, but any later 3+ version will probably work. Create a virtualenv from that repo:

pip install venv
python3 -m venv eeg_venv
# activate the venv according to your OS
# Windows example:
. ./eeg_venv/scripts/Activate
pip install -r requirements.txt

Script Examples

This script receives an LSL API stream and prints it to the console.

python -n PetalStream_blink
python -n PetalStream_eye
python -n PetalStream_bandpower
python -n PetalStream_artifact_detect
python -n PetalStream_metrics

Last updated