pop_select#

pop_select(EEG, *args, gui=None, renderer=None, return_com=False, **kwargs)#

Select EEG data using EEGLAB pop_select semantics.

Numeric channel, nochannel, and rmchannel arguments use zero-based Python indices. The GUI uses one-based channel numbers. Channel labels can be used in either interface.

With sorttrial='off', a repeated trial is kept at its first position. trial=[5, 4, 3, 2, 1, 5] stays [5, 4, 3, 2, 1]. EEGLAB pop_select.m lines 282-286 call unique_bc (unique(..., 'legacy')), which keeps the last copy, so the same input becomes [4, 3, 2, 1, 5].