Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix: Calculation of max value.
[csit.git]
/
resources
/
tools
/
presentation
/
generator_plots.py
diff --git
a/resources/tools/presentation/generator_plots.py
b/resources/tools/presentation/generator_plots.py
index
51b2940
..
0889d24
100644
(file)
--- a/
resources/tools/presentation/generator_plots.py
+++ b/
resources/tools/presentation/generator_plots.py
@@
-149,7
+149,11
@@
def plot_performance_box(plot, input_data):
y=[y / 1000000 if y else None for y in df[col]],
name=name,
**plot["traces"]))
- val_max = max(df[col])
+ try:
+ val_max = max(df[col])
+ except ValueError as err:
+ logging.error(err)
+ continue
if val_max:
y_max.append(int(val_max / 1000000) + 1)