Drop bad channels/ epochs. Gives RuntimeError: bad channel(s) ['Fp1'] marked do not exist in info
See original GitHub issueHey guys,
want to mark channel ‘Fp1’ as bad, which works perfectly, but then afterwards when I call the mne.pick_types function, I get the RuntimerError: bad channel(s) [‘Fp1’] marked do not exist in info
# drop Fp1 channel
raw.info['bads'] = ['Fp1']
#work with eeg date, so eeg=True
picks_eeg = mne.pick_types(raw.info, meg=False, eeg=True, eog=False,
stim=False, exclude='bads')
Any idea what might the problem be?
Thanks in advance!!
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Handling bad channels — MNE 0.23.4 documentation
The list of bad channels is stored in the 'bads' field of the Info object that is attached to Raw , Epochs ,...
Read more >Interpolation of bad channels in fNIRS data - MNE Forum
When a channel is marked as bad it stays in the data, but the software will know it is a bad channel. How...
Read more >QRadar APARs 101 - IBM
The QRadar Support team created this QRadar APARs 101 to make APARs more usable for administrators. Use the search to locate APARs or...
Read more >SleepWorks 9 - Reference Manual - Natus Partner
The Natus Sleep System includes amplifiers, a personal computer (PC), software and sleep accessories. The software is installed on a PC that process...
Read more >ACTCD19-PERFILE.txt
... "%s%s" 0.376647 10 0x00000004 0.376607 15 platform_device 0.376326 4 Info ... 2 py 0.23321 3 bad 0.23317 4 0xe4 0.23317 3 231...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Stoffander You’d probably want to rename your channels to remove the spaces. You can use
raw.rename_channels
:It worked. Thanks a lot!!! Classic amateur mistake 😉