triqs.gfs.tools.write_gf_to_txt
- triqs.gfs.tools.write_gf_to_txt(g)[source]
Write a frequency Green’s function to text files.
Writes one file per matrix element of the target space with three columns
(w, Re(G), Im(G))(real frequency) or(omega_n, Re(G), Im(G))(Matsubara). File names follow the pattern"{g.name}_{i}_{j}.dat".- Parameters:
- gGf
Real- or Matsubara-frequency Green’s function with a matrix-valued target space.
- Raises:
- ValueError
If
g.meshis neitherMeshReFreqnorMeshImFreq.