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 OSC API stream and prints it to the console.

python -t /PetalStream/blink
python -t /PetalStream/eye
python -t /PetalStream/bandpower
python -t /PetalStream/artifact_detect

Last updated