Trending: use 2*stdev
[csit.git] / resources / tools / presentation / generator_tables.py
index 951be8e..db79396 100644 (file)
@@ -422,8 +422,11 @@ def table_performance_comparison(table, input_data):
                                                              None) is None:
                             tbl_dict[tst_name]["history"][item["title"]] = \
                                 list()
-                        tbl_dict[tst_name]["history"][item["title"]].\
-                            append(tst_data["throughput"]["value"])
+                        try:
+                            tbl_dict[tst_name]["history"][item["title"]].\
+                                append(tst_data["throughput"]["value"])
+                        except (TypeError, KeyError):
+                            pass
 
     tbl_lst = list()
     for tst_name in tbl_dict.keys():
@@ -803,9 +806,9 @@ def table_performance_trending_dashboard(table, input_data):
                         or isnan(stdev_t[build_nr]) \
                         or isnan(value):
                     classification_lst.append("outlier")
-                elif value < (median_t[build_nr] - 3 * stdev_t[build_nr]):
+                elif value < (median_t[build_nr] - 2 * stdev_t[build_nr]):
                     classification_lst.append("regression")
-                elif value > (median_t[build_nr] + 3 * stdev_t[build_nr]):
+                elif value > (median_t[build_nr] + 2 * stdev_t[build_nr]):
                     classification_lst.append("progression")
                 else:
                     classification_lst.append("normal")