def read_head_pos(fname):
 _check_fname(fname, must_exist=True, overwrite=True)
 data = np.loadtxt(fname, skiprows=1)
 data.shape = ((-1), 10)
 if np.isnan(data).any():
  raise RuntimeError(('positions could not be read properly from %s' % fname))
 return data

def read_head_pos ( fname ) : _check_fname ( fname , must_exist = True , overwrite = True ) data = np . loadtxt ( fname , skiprows = 1 ) data . shape = ( ( - 1 ) , 10 ) if np . isnan ( data ) . any ( ) : raise RuntimeError ( ( 'positions could not be read properly from %s' % fname ) ) return data
read maxfilter-formatted head position parameters .