Save Muse 2/S PPG and IMU as sidecar CSVs - #333
Open
khuzaymahbinharis-jpg wants to merge 1 commit into
Open
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
recording_...._ppg.csv,recording_...._accel.csv).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.Fixes #233
Test plan
python -m pytest tests/test_acquisition.py -o addopts=(synthetic acquisition plus mocked Muse sidecar tests)muse2_bfnormuseS_bfnon a real headset and confirm three CSVs: EEG (unchanged columns),_ppg.csv,_accel.csvconfig=still overrides the default Muse command