PAL Trending: fix in remove_outliers 80/11980/1
authorTibor Frank <tifrank@cisco.com>
Mon, 23 Apr 2018 06:17:35 +0000 (08:17 +0200)
committerTibor Frank <tifrank@cisco.com>
Mon, 23 Apr 2018 06:17:35 +0000 (08:17 +0200)
Change-Id: Iec4d1683b8bb97224971d803821aced3c37144bd
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/generator_tables.py
resources/tools/presentation/utils.py

index 9b9f09f..50a6623 100644 (file)
@@ -405,7 +405,7 @@ def table_performance_comparison(table, input_data):
         item = [tbl_dict[tst_name]["name"], ]
         if tbl_dict[tst_name]["ref-data"]:
             data_t = remove_outliers(tbl_dict[tst_name]["ref-data"],
-                                     outlier_constant=table["outlier-const"])
+                                     outlier_const=table["outlier-const"])
             # TODO: Specify window size.
             item.append(round(mean(data_t) / 1000000, 2))
             item.append(round(stdev(data_t) / 1000000, 2))
@@ -413,7 +413,7 @@ def table_performance_comparison(table, input_data):
             item.extend([None, None])
         if tbl_dict[tst_name]["cmp-data"]:
             data_t = remove_outliers(tbl_dict[tst_name]["cmp-data"],
-                                     outlier_constant=table["outlier-const"])
+                                     outlier_const=table["outlier-const"])
             # TODO: Specify window size.
             item.append(round(mean(data_t) / 1000000, 2))
             item.append(round(stdev(data_t) / 1000000, 2))
index bc62268..2fbf70c 100644 (file)
@@ -67,6 +67,7 @@ def relative_change(nr1, nr2):
 
     return float(((nr2 - nr1) / nr1) * 100)
 
+
 def remove_outliers(input_list, outlier_const=1.5, window=14):
     """Return list with outliers removed, using split_outliers.
 

©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.