Finding Bad Indexes

Hi All,

Plotted ICA:
image

Now trying to find the bad indexes and exclude them.

bad_idx, scores = ica.find_bads_eog(raw, 'SO2', threshold=2)
print(bad_idx)

getting error:

ValueError: The specified EOG channel cannot be found: SO2

@richard. Thanks

1 Like

Hello @Loner and thanks for updating the posting, I appreciate it! :slight_smile:

So the error message seems to indicate that there is actually no channel named S02 in your data, hence MNE cannot use it to find EOG artifacts. Can you double-check that you got the channel name right?

Best wishes,
Richard