[Eeglablist] Error in pop_epoch command line

Arnaud Delorme arno at ucsd.edu
Fri Jul 27 09:18:12 PDT 2018


Dear Kelly,

I notice that your events are followed by space characters. That could be the issue. It could also be that your events are numbers not strings. Try without the extra space character

EEG = pop_epoch( EEG,  { ‘510' ’511' '610'  '611'  '710'  '711'  '810'  '811'  }, [-2  2], 'newname', 'EGI file resampled pruned with ICA epochs', 'epochinfo', 'yes’);

or try using numerical events

EEG = pop_epoch( EEG,  [ 510 511 610 611 710 711 810 811 ], [-2  2], 'newname', 'EGI file resampled pruned with ICA epochs', 'epochinfo', 'yes’);

If it still does not work, to see your event types, type on the command line

eeg_eventtypes(EEG)

Best wishes,

Arno

> On Jul 26, 2018, at 9:27 AM, 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




More information about the eeglablist mailing list