Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allows for renaming channel names saved to the csv file. #272

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

pellet
Copy link
Contributor

@pellet pellet commented Sep 1, 2024

I needed to add this code due to using a custom placement of electrodes with my OpenBCI Cyton.
I'd rather name the channels in the original CSV file correctly than during the analysis phase so I can drop the CSV files easily into other programs for analysis.

@pellet
Copy link
Contributor Author

pellet commented Sep 6, 2024

I've given this a test on my Mac M1 Pro and I recorded data fine with the n170 experiment - didn't get any crashes.
Here is an example of how to use the modification:

# Move the channel positions close to the occipital lobe and not
# overlapping the HUD straps.
ch_names = ['P7', 'Cz', 'Oz', 'POz', 'PO3', 'PO4', 'O1', 'O2']
eeg_device = EEG(device=board_name, ch_names=ch_names)

@pellet
Copy link
Contributor Author

pellet commented Sep 7, 2024

@JohnGriffiths By default the channels names are pulled from Brainflow for all devices except for BoardIds.GANGLION_BOARD, BoardIds.GANGLION_WIFI_BOARD and BoardIds.FREEEEG32_BOARD with the following:
BoardShim.get_eeg_names(self.brainflow_id)

@JohnGriffiths JohnGriffiths marked this pull request as ready for review October 3, 2024 20:08
@JohnGriffiths JohnGriffiths merged commit 7238475 into NeuroTechX:develop Oct 3, 2024
5 of 6 checks passed
@pellet pellet deleted the dev/eeg_rename_channels branch October 27, 2024 10:44
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.

2 participants