[Eeglablist] Error in pop_epoch command line

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Tue Jul 31 11:15:22 PDT 2018


Dear Kelly, Ramon, Arno,

Kelly's event names contain space in the end so that the all the event
names has 4-letter length. I think this is the cause of the problem. Most
likely, some of Matlab functions handles space as space (I guess the one
Kelly used does), while others not...

Kelly, my advice is that you don't use space in this way. It can cause
troubles like this. Instead of using '510 ', you should choose '5100'. For
the same reason, you don't want to use any weird character like %&*^()~+|
it'll cause troubles as well (the same applies to path names, variable
names, and file names!)

Makoto

%%%%%%%%%%%%%%%%%%%%%%%
>> unique({EEG.event.type}')

ans =

    '510 '
    '511 '
    '520 '
    '521 '
    '530 '
    '531 '
    '610 '
    '611 '
    '620 '
    '621 '
    '630 '
    '631 '
    '710 '
    '711 '
    '720 '
    '721 '
    '730 '
    '731 '
    '810 '
    '811 '
    '820 '
    '821 '
    '830 '
    '831 '
    'Answ'
    'EEGb'
    'Nois'
    'PicS'
    'PreO'
    'PstO'
    'blks'
    'boundary'
    'iTiO'
    'resp'
    'rest'

On Sat, Jul 28, 2018 at 1:45 PM Kelly Michaelis <kcmichaelis at gmail.com>
wrote:

> 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.ucsd.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
>>
>
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to
> eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu



-- 
Makoto Miyakoshi
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/20180731/263140a1/attachment.html>


More information about the eeglablist mailing list