#NEWLINE# def _close_event( event , params ) : #NEWLINE# #INDENT# 'Function to drop selected bad epochs. Called on closing of the plot.' #NEWLINE# params [ 'epochs' ] . drop ( params [ 'bads' ] ) #NEWLINE# params [ 'epochs' ] . info [ 'bads' ] = event [ 'info' ] [ 'bads' ] #NEWLINE# logger . info ( ( 'Channels marked as bad: %s' % params [ 'epochs' ] . info [ 'bads' ] ) )