Fix: Calculation of max value. 19/15719/2
authorTibor Frank <tifrank@cisco.com>
Mon, 5 Nov 2018 17:24:41 +0000 (18:24 +0100)
committerTibor Frank <tifrank@cisco.com>
Mon, 5 Nov 2018 17:26:27 +0000 (17:26 +0000)
Change-Id: Ibf84467f3e8a3a956814207261b4ea24f69f0a97
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/generator_plots.py

index 51b2940..0889d24 100644 (file)
@@ -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)
 

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.