From 7254a47db3b763396b58c6b809171bbd7525f60d Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Fri, 17 May 2019 12:42:19 +0200 Subject: Report: table_soak_vs_ndr Change-Id: Ia313fb43c315990212501b4139f3f1f7bc9d67f5 Signed-off-by: Tibor Frank (cherry picked from commit 7960d8258471725aa9eee40101abf4030b3bb5e1) --- resources/tools/presentation/generator_tables.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 3bfae47d24..05a696c214 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -27,7 +27,7 @@ from datetime import datetime as dt from datetime import timedelta from utils import mean, stdev, relative_change, classify_anomalies, \ - convert_csv_to_pretty_txt + convert_csv_to_pretty_txt, relative_change_stdev REGEX_NIC = re.compile(r'\d*ge\dp\d\D*\d*') @@ -616,6 +616,7 @@ def table_soak_vs_ndr(table, input_data): item.append(round(data_r_stdev / 1000000, 2)) else: data_r_mean = None + data_r_stdev = None item.extend([None, None]) data_c = tbl_dict[tst_name]["cmp-data"] if data_c: @@ -625,9 +626,9 @@ def table_soak_vs_ndr(table, input_data): item.append(round(data_c_stdev / 1000000, 2)) else: data_c_mean = None + data_c_stdev = None item.extend([None, None]) - if data_r_mean and data_c_mean is not None: - item.append(round(relative_change(data_r_mean, data_c_mean), 2)) + if data_r_mean and data_c_mean: delta, d_stdev = relative_change_stdev( data_r_mean, data_c_mean, data_r_stdev, data_c_stdev) item.append(round(delta, 2)) -- cgit 1.2.3-korg