triqs.gfs.gf.bckwd

triqs.gfs.gf.bckwd(hdf_scheme)[source]

Map a legacy GfXxx HDF5 scheme name to the constructor kwargs for the current Gf class.

The legacy scheme name has the form GfM1[_x_M2][_s|Tv3|Tv4] (e.g. GfImFreq, GfImTime_x_ImFreq, GfReFreqTv3). The leading Gf and any target-rank/scalar suffix are stripped, and the remaining mesh portion is prefixed with Mesh to yield the registered mesh class name expected by Gf.__init__.