@verbose
def setup_proj(info, add_eeg_ref=True, activate=True, verbose=None):
 if (add_eeg_ref and _needs_eeg_average_ref_proj(info)):
  eeg_proj = make_eeg_average_ref_proj(info, activate=activate)
  info['projs'].append(eeg_proj)
 (projector, nproj) = make_projector_info(info)
 if (nproj == 0):
  if verbose:
   logger.info('The projection vectors do not apply to these channels')
  projector = None
 else:
  logger.info(('Created an SSP operator (subspace dimension = %d)' % nproj))
 if activate:
  info['projs'] = activate_proj(info['projs'], copy=False)
 return (projector, info)

@ verbose def setup_proj ( info , add_eeg_ref = True , activate = True , verbose = None ) : if ( add_eeg_ref and _needs_eeg_average_ref_proj ( info ) ) : eeg_proj = make_eeg_average_ref_proj ( info , activate = activate ) info [ 'projs' ] . append ( eeg_proj ) ( projector , nproj ) = make_projector_info ( info ) if ( nproj == 0 ) : if verbose : logger . info ( 'The projection vectors do not apply to these channels' ) projector = None else : logger . info ( ( 'Created an SSP operator (subspace dimension = %d)' % nproj ) ) if activate : info [ 'projs' ] = activate_proj ( info [ 'projs' ] , copy = False ) return ( projector , info )
set up projection for raw and epochs .