Skip to content

Commit

Permalink
Fix formatting of hysteresis script
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Horacek <[email protected]>
  • Loading branch information
phoracek committed Dec 22, 2024
1 parent 961bb9b commit fb05334
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/hysteresis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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]))

Expand Down

0 comments on commit fb05334

Please sign in to comment.