# mne\_process\_raw problem

**URL:** <https://mne.discourse.group/t/mne-process-raw-problem/127>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [May 19, 2009, 2:20pm UTC](https://mne.discourse.group/t/mne-process-raw-problem/127 "2009-05-19T14:20:32Z")\
**Posts on this page:** 4\
**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 19, 2009, 2:20pm UTC](https://mne.discourse.group/t/mne-process-raw-problem/127/1 "2009-05-19T14:20:32Z")

</div>

Hi,

I am having a problem in one subject when trying to average raw files  
(and computing a noise covariance matrix) with mne\_process\_raw. I sent  
an mail about this a while ago but did not hear back and all my attempts  
to solve this problem myself failed.

The error message says:  
"Event file is in the old format. Taking into account offset of 135000  
samples  
Read 714 events from SBT\_MEG\_005\_run1\_converted.eve  
Computing...  
Too few samples (required : 1885 got : 0)"

My understanding of this error message is that mne does not find events  
listed in the event file that match events in the raw file. However, the  
events listed in the event file do match events on the trigger channel  
(STI 014). Played around with the event file using non-modified event  
files and event files in the old and new format did not lead to any  
success, nor did excluding runs separately or excluding EEG from the raw  
files (the EEG looked not nice because the subject was sweating a lot).  
Running the old mne version did not change anything either.  
I have run the same command in other subjects without problems.

Any help with this is greatly appreciated!  
thanks, Sarah

---

<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 19, 2009, 2:43pm UTC](https://mne.discourse.group/t/mne-process-raw-problem/127/2 "2009-05-19T14:43:22Z")

</div>

Hi Sarah,

I believe this shows the data is being rejected for those samples. You  
should look at the rejection criteria (should be identical to averaging),  
next check the log file. Send another e-mail if those don't look promising

Dan

---

<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 19, 2009, 2:45pm UTC](https://mne.discourse.group/t/mne-process-raw-problem/127/3 "2009-05-19T14:45:57Z")

</div>

Hi Sarah,

One idea is to check in your off-line averaging description file the  
\*Reject parameters since maybe they are too high and thus all your epochs  
are being rejected.

Before doing the offline averaging you should do it online  
(mne\_browse\_raw), changing these values in Adjust/Averaging preferences to  
be sure you will get some.

Hope this helps,

-- Andr?s

> Hi,
> 
> I am having a problem in one subject when trying to average raw files

(and computing a noise covariance matrix) with mne\_process\_raw. I sent an  
mail about this a while ago but did not hear back and all my attempts to  
solve this problem myself failed.

> The error message says:  
> "Event file is in the old format. Taking into account offset of 135000

samples

> Read 714 events from SBT\_MEG\_005\_run1\_converted.eve  
> Computing...  
> Too few samples (required : 1885 got : 0)"
> 
> My understanding of this error message is that mne does not find events

listed in the event file that match events in the raw file. However, the  
events listed in the event file do match events on the trigger channel  
(STI 014). Played around with the event file using non-modified event  
files and event files in the old and new format did not lead to any  
success, nor did excluding runs separately or excluding EEG from the raw  
files (the EEG looked not nice because the subject was sweating a lot).  
Running the old mne version did not change anything either.

---

<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 19, 2009, 2:53pm UTC](https://mne.discourse.group/t/mne-process-raw-problem/127/4 "2009-05-19T14:53:42Z")

</div>

Hi Sarah,

Also, it could be possible that you are getting this error message because  
there are too few samples to calculate the noise cov matrix.

I am guessing if you invoke mne\_process\_raw ONLY to calculate the grand  
average, it should execute OK.

~N&ita
