# Finding Bad Indexes

**URL:** https://mne.discourse.group/t/finding-bad-indexes/5239
**Category:** Support & Discussions
**Tags:** preprocessing, eeg
**Created:** [July 7, 2022, 12:22pm UTC](https://mne.discourse.group/t/finding-bad-indexes/5239 "2022-07-07T12:22:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Loner](https://avatars.discourse-cdn.com/v4/letter/l/7ba0ec/32.png) [@Loner](https://mne.discourse.group/u/Loner)
#### Post date: [July 7, 2022, 12:22pm UTC](https://mne.discourse.group/t/finding-bad-indexes/5239/1 "2022-07-07T12:22:57Z")

</div>

Hi All,

Plotted ICA:  
 ![image](https://global.discourse-cdn.com/free1/uploads/mne/original/2X/5/5be7cb6ba0d7fa4b7ad5dc96e9b218e79caa4452.png)

Now trying to find the bad indexes and exclude them.

```python
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

---

<div class="post-metadata">

### Author: ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)
#### Post date: [July 7, 2022, 2:59pm UTC](https://mne.discourse.group/t/finding-bad-indexes/5239/3 "2022-07-07T14:59:07Z")

</div>

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

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
