aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2019-05-17 12:42:19 +0200
committerTibor Frank <tifrank@cisco.com>2019-05-17 12:44:46 +0200
commit7960d8258471725aa9eee40101abf4030b3bb5e1 (patch)
tree8d64af554f0264b5f684f1a1e6b20a3ea6f3a3fc /resources/tools/presentation
parent2637eab1e1d226089e1ecfd882fd5bdc8e67885c (diff)
Report: table_soak_vs_ndr
Change-Id: Ia313fb43c315990212501b4139f3f1f7bc9d67f5 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation')
-rw-r--r--resources/tools/presentation/generator_tables.py7
1 files 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))