summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2022-10-13 22:20:24 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2022-10-13 22:20:24 +0200
commit8aa9f32b2326e2c54ed697442378d4c8b7415b11 (patch)
tree8620c8b4d1bebeb76e905788924630740b647425 /scripts
parentd55840e16cda7cb8bb8b8c81e5294833c81913e8 (diff)
Fix plotting issue in case of 'inf' values
Diffstat (limited to 'scripts')
-rw-r--r--scripts/benchmark/plot.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/benchmark/plot.py b/scripts/benchmark/plot.py
index b0b63df3..c36f476f 100644
--- a/scripts/benchmark/plot.py
+++ b/scripts/benchmark/plot.py
@@ -90,7 +90,8 @@ def plot_graphs(results, file_name, num_rows, num_cols,
x_ticks = [v if not (i % 2) else "" for i, v in enumerate(x_ticks)]
# Sets the y-data
- y_list = [[r[y_key] if y_key in r.keys() else 0 for r in result] for y_key in y_keys[index]]
+ y_list = [[r[y_key] if y_key in r.keys() and not isinstance(r[y_key], str) else 0 for r in result]
+ for y_key in y_keys[index]]
y_max = [max(y) if len(y) else 1 for y in y_list]
y_max = max(y_max) if len(y_list) > 0 else 1