def _pick_eeg_pos(c):
 eeg = dict(coord_frame=FIFF.FIFFV_COORD_HEAD, assign_to_chs=False, labels=list(), ids=list(), rr=list(), kinds=list(), np=0)
 for ch in c['chs']:
  if ((ch['kind'] == FIFF.FIFFV_EEG_CH) and (not _at_origin(ch['loc'][:3]))):
   eeg['labels'].append(ch['ch_name'])
   eeg['ids'].append(ch['logno'])
   eeg['rr'].append(ch['loc'][:3])
   eeg['kinds'].append(FIFF.FIFFV_POINT_EEG)
   eeg['np'] += 1
 if (eeg['np'] == 0):
  return None
 logger.info(('Picked positions of %d EEG channels from channel info' % eeg['np']))
 return eeg

def _pick_eeg_pos ( c ) : eeg = dict ( coord_frame = FIFF . FIFFV_COORD_HEAD , assign_to_chs = False , labels = list ( ) , ids = list ( ) , rr = list ( ) , kinds = list ( ) , np = 0 ) for ch in c [ 'chs' ] : if ( ( ch [ 'kind' ] == FIFF . FIFFV_EEG_CH ) and ( not _at_origin ( ch [ 'loc' ] [ : 3 ] ) ) ) : eeg [ 'labels' ] . append ( ch [ 'ch_name' ] ) eeg [ 'ids' ] . append ( ch [ 'logno' ] ) eeg [ 'rr' ] . append ( ch [ 'loc' ] [ : 3 ] ) eeg [ 'kinds' ] . append ( FIFF . FIFFV_POINT_EEG ) eeg [ 'np' ] += 1 if ( eeg [ 'np' ] == 0 ) : return None logger . info ( ( 'Picked positions of %d EEG channels from channel info' % eeg [ 'np' ] ) ) return eeg
pick eeg positions .