def read_sns(fname):
 p = re.compile((('\\d,[A-Za-z]*,([\\.\\-0-9]+),' + '([\\.\\-0-9]+),([\\.\\-0-9]+),') + '([\\.\\-0-9]+),([\\.\\-0-9]+)'))
 with open(fname) as fid:
  locs = np.array(p.findall(fid.read()), dtype=float)
 return locs

def read_sns ( fname ) : p = re . compile ( ( ( '\\d,[A-Za-z]*,([\\.\\-0-9]+),' + '([\\.\\-0-9]+),([\\.\\-0-9]+),' ) + '([\\.\\-0-9]+),([\\.\\-0-9]+)' ) ) with open ( fname ) as fid : locs = np . array ( p . findall ( fid . read ( ) ) , dtype = float ) return locs
sensor coordinate extraction in meg space .