From 8e0e915fb9700e5fec14e106b67e5467fc11a79c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 15 Aug 2023 03:26:39 +0000 Subject: [PATCH] style: pre-commit fixes --- examples/simple_log_weight.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/simple_log_weight.py b/examples/simple_log_weight.py index 7c2bdbf7..4db34f2a 100755 --- a/examples/simple_log_weight.py +++ b/examples/simple_log_weight.py @@ -18,9 +18,7 @@ for idx, (lower, upper) in enumerate(h.axes[0]): val = h[idx] print( - "bin {} [{:g}, {:g}): {} +/- {}".format( - idx, lower, upper, val.value, val.variance**0.5 - ) + f"bin {idx} [{lower:g}, {upper:g}): {val.value} +/- {val.variance**0.5}" ) # under- and overflow bin