def pick_channels_evoked(orig, include=[], exclude='bads'):
 if ((len(include) == 0) and (len(exclude) == 0)):
  return orig
 exclude = _check_excludes_includes(exclude, info=orig.info, allow_bads=True)
 sel = pick_channels(orig.info['ch_names'], include=include, exclude=exclude)
 if (len(sel) == 0):
  raise ValueError('Warning : No channels match the selection.')
 res = deepcopy(orig)
 res.info = pick_info(res.info, sel)
 res.data = res.data[sel, :]
 return res

def pick_channels_evoked ( orig , include = [ ] , exclude = 'bads' ) : if ( ( len ( include ) == 0 ) and ( len ( exclude ) == 0 ) ) : return orig exclude = _check_excludes_includes ( exclude , info = orig . info , allow_bads = True ) sel = pick_channels ( orig . info [ 'ch_names' ] , include = include , exclude = exclude ) if ( len ( sel ) == 0 ) : raise ValueError ( 'Warning : No channels match the selection.' ) res = deepcopy ( orig ) res . info = pick_info ( res . info , sel ) res . data = res . data [ sel , : ] return res
pick channels from evoked data .