Skip to content

Save Muse 2/S PPG and IMU as sidecar CSVs - #333

Open
khuzaymahbinharis-jpg wants to merge 1 commit into
NeuroTechX:masterfrom
khuzaymahbinharis-jpg:feat/muse-brainflow-ppg
Open

Save Muse 2/S PPG and IMU as sidecar CSVs#333
khuzaymahbinharis-jpg wants to merge 1 commit into
NeuroTechX:masterfrom
khuzaymahbinharis-jpg:feat/muse-brainflow-ppg

Conversation

@khuzaymahbinharis-jpg

Copy link
Copy Markdown

Summary

  • Save Muse 2 / Muse S PPG and accel/gyro from BrainFlow as sidecar CSVs next to the existing EEG recording (recording_...._ppg.csv, recording_...._accel.csv).
  • Enable PPG with p51 (Muse 2) / p61 (Muse S) so the EEG file keeps four channels and the same sampling rate. Extra streams are not concatenated, because EEG (~256 Hz), accel (~52 Hz), and PPG (~64 Hz) do not share a rate.
  • BlueMuse / MuseLSL and Muse 2016 are out of scope. I do not have a Muse headset; tests mock BrainFlow presets. A maintainer with a device should confirm a real recording.

Fixes #233

Test plan

  • python -m pytest tests/test_acquisition.py -o addopts= (synthetic acquisition plus mocked Muse sidecar tests)
  • Record with muse2_bfn or museS_bfn on a real headset and confirm three CSVs: EEG (unchanged columns), _ppg.csv, _accel.csv
  • Confirm passing config= still overrides the default Muse command
  • Confirm non-Muse boards (e.g. synthetic) still write only the EEG CSV

BrainFlow keeps those streams at different sampling rates, so writing them into the EEG table would break existing analysis. Enable p51/p61 by default while leaving the EEG CSV columns unchanged.

Fixes NeuroTechX#233
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

is it possible to save the PPG data from Muse 2 (with bluemuse and/or brainflow)?

1 participant