@verbose
def _prep_eeg_channels(info, exclude=(), verbose=None):
 (eegnames, eegels) = ([], [])
 info_extra = 'info'
 picks = pick_types(info, meg=False, eeg=True, ref_meg=False, exclude=exclude)
 neeg = len(picks)
 if (neeg <= 0):
  raise RuntimeError('Could not find any EEG channels')
 eegchs = pick_info(info, picks)['chs']
 eegnames = [info['ch_names'][p] for p in picks]
 logger.info(('Read %3d EEG channels from %s' % (len(picks), info_extra)))
 eegels = _create_eeg_els(eegchs)
 logger.info('Head coordinate coil definitions created.')
 return (eegels, eegnames)

@ verbose def _prep_eeg_channels ( info , exclude = ( ) , verbose = None ) : ( eegnames , eegels ) = ( [ ] , [ ] ) info_extra = 'info' picks = pick_types ( info , meg = False , eeg = True , ref_meg = False , exclude = exclude ) neeg = len ( picks ) if ( neeg <= 0 ) : raise RuntimeError ( 'Could not find any EEG channels' ) eegchs = pick_info ( info , picks ) [ 'chs' ] eegnames = [ info [ 'ch_names' ] [ p ] for p in picks ] logger . info ( ( 'Read %3d EEG channels from %s' % ( len ( picks ) , info_extra ) ) ) eegels = _create_eeg_els ( eegchs ) logger . info ( 'Head coordinate coil definitions created.' ) return ( eegels , eegnames )
prepare eeg electrode definitions for forward calculation .