#NEWLINE# def _close_epochs_event( events , params ) : #NEWLINE# #INDENT# 'Function for excluding the selected components on close.' #NEWLINE# info = params [ 'info' ] #NEWLINE# exclude = [ info [ 'ch_names' ] . index ( params ) for x in info [ 'bads' ] if x . startswith ( 'ICA' ) ] #NEWLINE# params [ 'ica' ] . exclude = exclude