pop_rejepoch#

pop_rejepoch(EEG, tmprej=None, confirm=1, *, return_com=False)#

Remove rejected epochs.

tmprej may be either a boolean vector of length EEG.trials or a list of EEGLAB-facing 1-based epoch indices. The history command is always pop_rejepoch( EEG, indices ,0) (pop_rejepoch.m:101). confirm=-1 keeps an empty result (pop_rejepoch.m:96-97, erroronempty off). Any other confirm value raises when every epoch is marked. This function does not open a dialog. The scroll window asks before removing epochs, and the Reject marked epochs menu superposes marks before it calls this function.

Parameters: