From fb0533489117c471f7c10ba9cecb014d231c45e7 Mon Sep 17 00:00:00 2001 From: Petr Horacek Date: Mon, 23 Dec 2024 00:39:08 +0100 Subject: [PATCH] Fix formatting of hysteresis script Signed-off-by: Petr Horacek --- hack/hysteresis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/hysteresis.py b/hack/hysteresis.py index 9e01985..6d0a595 100755 --- a/hack/hysteresis.py +++ b/hack/hysteresis.py @@ -588,7 +588,7 @@ def test_fitting_functions(input_configs): configs = sorted(configs, key=lambda x: x["rmse"]) print("Approximations ordered by accuracy:") - for (i, config) in enumerate(configs): + for i, config in enumerate(configs): print( "{}. {}(rmse={}, rs={})".format( i + 1, config["func"], config["rmse"], config["rs"] @@ -608,7 +608,7 @@ def test_fitting_functions(input_configs): def print_parameters(parameters): - for (i, a) in enumerate(parameters[: len(parameters) - 1]): + for i, a in enumerate(parameters[: len(parameters) - 1]): print("a{} = {}".format(i + 1, a)) print("b = {}".format(parameters[-1]))