pop_rejepoch#
- pop_rejepoch(EEG, tmprej=None, confirm=1, *, return_com=False)#
Remove rejected epochs.
tmprejmay be either a boolean vector of lengthEEG.trialsor a list of EEGLAB-facing 1-based epoch indices. The history command is alwayspop_rejepoch( EEG, indices ,0)(pop_rejepoch.m:101).confirm=-1keeps an empty result (pop_rejepoch.m:96-97,erroronemptyoff). 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.