aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-04-30 16:18:34 -0400
committerDavid Robillard <d@drobilla.net>2023-04-30 16:18:34 -0400
commit956f9fe7b051dc1c96433b2204f61e74c2366015 (patch)
tree66533de3e808b6e36bd6017fd605d44b30dbbbc7 /scripts
parentdeff986fc9c47d9c6d804b3ca25940a2d4ebea6b (diff)
downloadserd-956f9fe7b051dc1c96433b2204f61e74c2366015.tar.gz
serd-956f9fe7b051dc1c96433b2204f61e74c2366015.tar.bz2
serd-956f9fe7b051dc1c96433b2204f61e74c2366015.zip
Fix redundant nested max() in benchmark script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/serd_bench.py2
1 files changed, 1 insertions, 1 deletions
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,