aboutsummaryrefslogtreecommitdiffstats
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 10:45:38 +0000
commit7254a47db3b763396b58c6b809171bbd7525f60d (patch)
tree11e348fff0530abd717ade502cb84bb066cfd368
parentf7a8c382b7cacbb18c9df1508c613ff7719215ed (diff)
Report: table_soak_vs_ndr
Change-Id: Ia313fb43c315990212501b4139f3f1f7bc9d67f5 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 7960d8258471725aa9eee40101abf4030b3bb5e1)
-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))