aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-11-05 18:24:41 +0100
committerTibor Frank <tifrank@cisco.com>2018-11-05 17:26:51 +0000
commitb754e0554939a3e9281c8102e9f1c47dfb81863c (patch)
tree5cc22bdb05bce4b950c8698f836a47a47dafd359
parent79054305956be04faf963e37bb4153615c419543 (diff)
Fix: Calculation of max value.
Change-Id: Ibf84467f3e8a3a956814207261b4ea24f69f0a97 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 2ea8039cf6a400e7c13219c7c2f826921aa64dfa) (cherry picked from commit 0355ebddd5ca76e29617a3beb302de1ad39aa19a)
-rw-r--r--resources/tools/presentation/generator_plots.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py
index 51b29407c3..0889d2461e 100644
--- 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)