PySDM_examples.Bartman_et_al_2021.label

 1def label(settings):
 2    lbl = str(
 3        {
 4            k.replace("condensation_", ""): (
 5                f"{v:.1e}"
 6                if isinstance(v, float)
 7                else str(v).zfill(2) if isinstance(v, int) else v
 8            )
 9            for k, v in settings.items()
10        }
11    )
12    return (
13        lbl.replace("{", "")
14        .replace("}", "")
15        .replace("'", "")
16        .replace("True", "T")
17        .replace("False", "F")
18        .replace("_thd", "$_{th}$")
19        .replace("e-0", "e-")
20    )
def label(settings):
 2def label(settings):
 3    lbl = str(
 4        {
 5            k.replace("condensation_", ""): (
 6                f"{v:.1e}"
 7                if isinstance(v, float)
 8                else str(v).zfill(2) if isinstance(v, int) else v
 9            )
10            for k, v in settings.items()
11        }
12    )
13    return (
14        lbl.replace("{", "")
15        .replace("}", "")
16        .replace("'", "")
17        .replace("True", "T")
18        .replace("False", "F")
19        .replace("_thd", "$_{th}$")
20        .replace("e-0", "e-")
21    )