def read_proj(fname):
 check_fname(fname, 'projection', ('-proj.fif', '-proj.fif.gz'))
 (ff, tree, _) = io.fiff_open(fname)
 with ff as fid:
  projs = io.proj._read_proj(fid, tree)
 return projs

def read_proj ( fname ) : check_fname ( fname , 'projection' , ( '-proj.fif' , '-proj.fif.gz' ) ) ( ff , tree , _ ) = io . fiff_open ( fname ) with ff as fid : projs = io . proj . _read_proj ( fid , tree ) return projs
read projections from a fif file .