triqs.gfs.block_gf.fix_gf_struct_type
- triqs.gfs.block_gf.fix_gf_struct_type(gf_struct)[source]
Normalise
gf_structto the canonical[(str, int), ...]form.Older TRIQS releases accepted a
dictmapping block names to sizes, or a list of pairs(name, [orbital_labels]). This helper converts both to the current[(name, linear_size), ...]representation, printing a warning tostdout.- Parameters:
- gf_structdict, or list of pairs
Legacy or canonical block-structure description.
- Returns:
- list of (str, int)
Canonical block structure.