eegprep.pop_icflag#

eegprep.pop_icflag(EEG, thresholds=None, *, gui=None, renderer=None, return_com=False)#

Flag ICLabel-classified components for later rejection.

Parameters:
  • EEG (dict | list[dict]) – EEG dictionary, or list of EEG dictionaries.

  • thresholds (Any) – 7-by-2 threshold matrix in ICLabel class order.

  • gui (bool | None) – Force or suppress the GUI threshold dialog.

  • renderer (Any | None) – Optional GUI renderer used by tests.

  • return_com (bool) – Return (EEG, command) when true.

Returns:

Updated EEG, and optionally the history command.

Return type:

dict or tuple