last event ignored using event list?

Hi,

I recently used description files to do off-line averaging, with an
event list. However, either with mne_browse_raw or mne_process_raw, the
last event is always ignored. For example, the output on the command
line says "Read 100 events from 10.eve", but the next line says
"average: nave = 99". And when looking at the log file, the last event
is not included. Does anyone know what is the cause of this and how to
deal with it? (I have already set the rejection threshold very high and
it does not influence this problem)

Thank you very much.

Mingbo Cai

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20110510/cb17b8a0/attachment.html

Hi Mingbo

What does the log file say? Have you checked the triggers in your file (by either exporting an event file or going through timepoint by timepoint)? Is this the number of triggers you expect from your stimulus program? Is there enough data after the start of the last trigger to include the entire time window specified?

D

Hi,

There is a bug with the event file processing which causes this to happen. The workaround is to add an extra event to the end of the event file. The mne_process_raw / mne_browse_raw code has been corrected and when the next version of MNE appears on the web site this bug will go avay.

- Matti