triqs.gfs.block_gf.fix_gf_struct_type

triqs.gfs.block_gf.fix_gf_struct_type(gf_struct)[source]

Normalise gf_struct to the canonical [(str, int), ...] form.

Older TRIQS releases accepted a dict mapping 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 to stdout.

Parameters:
gf_structdict, or list of pairs

Legacy or canonical block-structure description.

Returns:
list of (str, int)

Canonical block structure.