From 956f9fe7b051dc1c96433b2204f61e74c2366015 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 30 Apr 2023 16:18:34 -0400 Subject: Fix redundant nested max() in benchmark script --- scripts/serd_bench.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/serd_bench.py b/scripts/serd_bench.py index 54ec3f29..ae2f0f66 100755 --- a/scripts/serd_bench.py +++ b/scripts/serd_bench.py @@ -123,7 +123,7 @@ def plot(in_file, out_filename, x_label, y_label, y_max=None): actual_y_max = 0.0 for i, y in enumerate(cols[1::]): y_floats = list(map(float, y)) - actual_y_max = max(actual_y_max, max(y_floats)) + actual_y_max = max(actual_y_max, y_floats) ax.plot( x, y_floats, -- cgit v1.2.1