def _load_mne_locs(fname=None):
 if (not fname):
  resource_dir = op.join(op.dirname(op.abspath(__file__)), 'resources')
  fname = op.join(resource_dir, 'Artemis123_mneLoc.csv')
 if (not op.exists(fname)):
  raise IOError(('MNE locs file "%s" does not exist' % fname))
 logger.info('Loading mne loc file {}'.format(fname))
 locs = dict()
 with open(fname, 'r') as fid:
  for line in fid:
   vals = line.strip().split(',')
   locs[vals[0]] = np.array(vals[1::None], np.float)
 return locs

def _load_mne_locs ( fname = None ) : if ( not fname ) : resource_dir = op . join ( op . dirname ( op . abspath ( __file__ ) ) , 'resources' ) fname = op . join ( resource_dir , 'Artemis123_mneLoc.csv' ) if ( not op . exists ( fname ) ) : raise IOError ( ( 'MNE locs file "%s" does not exist' % fname ) ) logger . info ( 'Loading mne loc file {}' . format ( fname ) ) locs = dict ( ) with open ( fname , 'r' ) as fid : for line in fid : vals = line . strip ( ) . split ( ',' ) locs [ vals [ 0 ] ] = np . array ( vals [ 1 : : None ] , np . float ) return locs
load mne locs structure from file or recreate it .