def read_trans(fname):
 (fid, tree, directory) = fiff_open(fname)
 with fid:
  for t in directory:
   if (t.kind == FIFF.FIFF_COORD_TRANS):
    tag = read_tag(fid, t.pos)
    break
  else:
   raise IOError('This does not seem to be a -trans.fif file.')
 trans = tag.data
 return trans

def read_trans ( fname ) : ( fid , tree , directory ) = fiff_open ( fname ) with fid : for t in directory : if ( t . kind == FIFF . FIFF_COORD_TRANS ) : tag = read_tag ( fid , t . pos ) break else : raise IOError ( 'This does not seem to be a -trans.fif file.' ) trans = tag . data return trans
read a -trans .