# stim\_channel

**URL:** <https://mne.discourse.group/t/stim-channel/2205>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [May 29, 2020, 8:27pm UTC](https://mne.discourse.group/t/stim-channel/2205 "2020-05-29T20:27:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 29, 2020, 8:27pm UTC](https://mne.discourse.group/t/stim-channel/2205/1 "2020-05-29T20:27:30Z")

</div>

External Email - Use Caution

Dear experts:  
I have had this error before but I don?t understand why it doesn?t apply to this problem. I attach two screenshots of the error and the code. I simply read an edf format file my version of mne is 0.20. The probable solution is stim\_channel=None in events and in read raw or in one of them but none seems to work. Although with .bdf it does with edf it doesn?t.

Sincerely,  
Andrade.

[cid:E3726CA5-4213-4616-9837-809FF7396FF3 at home][cid:355170B7-96C6-4F0F-A14F-584BDD37412D at home]  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200529/5ab027e9/attachment-0001.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200529/5ab027e9/attachment-0001.html)  
-------------- next part --------------  
A non-text attachment was scrubbed...  
Name: Screenshot 2020-05-29 at 22.23.22.png  
Type: image/png  
Size: 148468 bytes  
Desc: Screenshot 2020-05-29 at 22.23.22.png  
Url : [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200529/5ab027e9/attachment-0002.png](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200529/5ab027e9/attachment-0002.png)  
-------------- next part --------------  
A non-text attachment was scrubbed...  
Name: Screenshot 2020-05-29 at 22.23.08.png  
Type: image/png  
Size: 756926 bytes  
Desc: Screenshot 2020-05-29 at 22.23.08.png  
Url : [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200529/5ab027e9/attachment-0003.png](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200529/5ab027e9/attachment-0003.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 30, 2020, 1:47pm UTC](https://mne.discourse.group/t/stim-channel/2205/2 "2020-05-30T13:47:53Z")

</div>

External Email - Use Caution

You cannot use `mne.find_events` if your file does not have a stim channel.  
We somewhat recently changed to having event-type information stored in  
raw.annotations, so you probably need to use events\_from\_annotations  
\<[https://mne.tools/dev/generated/mne.events\_from\_annotations.html&gt;\](https://mne.tools/dev/generated/mne.events_from_annotations.html&gt;%5C).

Eric

> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution
> 
> Dear experts:  
> I have had this error before but I don?t understand why it doesn?t apply  
> to this problem. I attach two screenshots of the error and the code. I  
> simply read an edf format file my version of mne is 0.20. The probable  
> solution is stim\_channel=None in events and in read raw or in one of them  
> but none seems to work. Although with .bdf it does with edf it doesn?t.
> 
> Sincerely,  
> Andrade.
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Mne\_analysis mailing list  
> Mne\_analysis at nmr.mgh.harvard.edu  
> [Mne\_analysis Info Page](https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis)

-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200530/6b510d49/attachment-0001.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200530/6b510d49/attachment-0001.html)  
-------------- next part --------------  
A non-text attachment was scrubbed...  
Name: Screenshot 2020-05-29 at 22.23.22.png  
Type: image/png  
Size: 148468 bytes  
Desc: not available  
Url : [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200530/6b510d49/attachment-0002.png](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200530/6b510d49/attachment-0002.png)  
-------------- next part --------------  
A non-text attachment was scrubbed...  
Name: Screenshot 2020-05-29 at 22.23.08.png  
Type: image/png  
Size: 756926 bytes  
Desc: not available  
Url : [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200530/6b510d49/attachment-0003.png](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200530/6b510d49/attachment-0003.png)
