[Eeglablist] Error in pop_epoch command line

Kelly Michaelis kcmichaelis at gmail.com
Fri Jul 27 11:01:44 PDT 2018


Hi John and Ramon,

Thank you for your responses.

I actually tried doing it through the GUI and using the eegh script, but
that produced the same error. It seems the issue has to do with the
presence of boundary events in a dataset - the command line function fails
on any dataset that has boundary events.

I submitted a bugzilla report:
https://sccn.ucsd.edu/bugzilla/show_bug.cgi?id=13798

I've been playing around with it. It seems it's a data type error arising
from line 216.

Ieventtmp = [ Ieventtmp ; strmatch(tmpevent, tmpeventtype, 'exact') ];

I switched the strmatch for contains, and this seems to have fixed the
error.

Ieventtmp = [ Ieventtmp find(contains(tmpeventtype,tmpevent))];

If anyone else is having this issue, you may want to try this.

Thanks,
Kelly



On Fri, Jul 27, 2018 at 12:15 PM, Ramón Martinez <nucleuscub at gmail.com>
wrote:

> Dear Kelly,
> Would you mind to share a sample set so we can reproduce this issue?
> Please, consider doing so by filing a bug report here
> <https://sccn.ucsd.edu/bugzilla/>.
>  Thanks,
> Ramon
>
> On Thu, Jul 26, 2018 at 6:27 PM, Kelly Michaelis <kcmichaelis at gmail.com>
> wrote:
>
>> Hello list,
>>
>> I'm running into a very peculiar error with pop_epoch. I'm trying to
>> process a large number of files, and so I really want to use command line
>> functions rather that the GUI. However, when I try to use pop_epoch, I get
>> the following error:
>>
>> >EEG = pop_epoch( EEG, {  '510 '  '511 '  '610 '  '611 '  '710 '  '711 '
>> '810 '  '811 '  }, [-2  2], 'newname', 'EGI file resampled pruned with ICA
>> epochs', 'epochinfo', 'yes');
>> >Error using pop_epoch (line 235)
>> >pop_epoch(): empty epoch range (no epochs were found).
>>
>>
>> When I load the exact same dataset into the GUI and use Tools>Extract
>> Epochs and select the same event types using ctrl/select to select all 8
>> events, everything works fine. I don't understand what the issue is. Can
>> anyone help? Since I'm processing so many sets through a long pipeline,
>> loading each one into the GUI to epoch will significantly slow down what
>> would otherwise be an automatic process.
>>
>> Thank you!
>>
>> Kelly
>>
>>
>>
>> _______________________________________________
>> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.uc
>> sd.edu
>> For digest mode, send an email with the subject "set digest mime" to
>> eeglablist-request at sccn.ucsd.edu
>>
>
>
>
> --
> _____________________________________________________
> Ramon Martinez-Cancino
> Swartz Center for Computational Neuroscience
> Institute for Neural Computation, University of California San Diego
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20180727/bff690d6/attachment.html>


More information about the eeglablist mailing list