def _get_target_ch(container, target):
 picks = pick_channels(container.ch_names, include=[target])
 ref_picks = pick_types(container.info, meg=False, eeg=False, ref_meg=True)
 if (len(ref_picks) > 0):
  picks = list((set(picks) - set(ref_picks)))
 if (len(picks) == 0):
  raise ValueError(('%s not in channel list (%s)' % (target, container.ch_names)))
 return picks

def _get_target_ch ( container , target ) : picks = pick_channels ( container . ch_names , include = [ target ] ) ref_picks = pick_types ( container . info , meg = False , eeg = False , ref_meg = True ) if ( len ( ref_picks ) > 0 ) : picks = list ( ( set ( picks ) - set ( ref_picks ) ) ) if ( len ( picks ) == 0 ) : raise ValueError ( ( '%s not in channel list (%s)' % ( target , container . ch_names ) ) ) return picks
aux function .