#NEWLINE# def _plot_update_epochs_proj( params , bools = None ) : #NEWLINE# #INDENT# 'Helper only needs to be called when proj is changed' #NEWLINE# if ( bools is not None ) : #NEWLINE# #INDENT# inds = np . where ( bools ) [ 0 ] #NEWLINE# params [ 'info' ] [ 'projs' ] = [ copy . deepcopy ( params [ 'projs' ] [ ii ] ) for ii in inds ] #NEWLINE# params [ 'proj_bools' ] = bools #NEWLINE# #UNINDENT# ( params [ 'projector' ] , _ ) = setup_proj ( params [ 'info' ] , add_eeg_ref = False , verbose = False ) #NEWLINE# start = int ( ( params [ 't_start' ] / len ( params [ 'epochs' ] . times ) ) ) #NEWLINE# n_epochs = params [ 'n_epochs' ] #NEWLINE# end = ( start + n_epochs ) #NEWLINE# data = np . concatenate ( params [ 'epochs' ] [ start : end ] . get_data ( ) , axis = 1 ) #NEWLINE# if ( params [ 'projector' ] is not None ) : #NEWLINE# #INDENT# data = np . dot ( params [ 'projector' ] , data ) #NEWLINE# #UNINDENT# types = params [ 'types' ] #NEWLINE# for ( pick , ind ) in enumerate ( params [ 'inds' ] ) : #NEWLINE# #INDENT# params [ 'data' ] [ pick ] = ( data [ ind ] / params [ 'scalings' ] [ types [ pick ] ] ) #NEWLINE# #UNINDENT# params [ 'plot_fun' ] ( )