aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-03-20 13:07:44 +0100
committerTibor Frank <tifrank@cisco.com>2020-03-20 13:07:44 +0100
commit94fce874d3ea20b775235c8323052b0390686fe2 (patch)
tree913265bd3ede5a6a8dc61a1f8b0852ba92ea980a /resources/tools/presentation/generator_tables.py
parentb63b36461f180236483711f37e22911925e9039e (diff)
Report: Add data
Change-Id: I54fc75cc46f95116a0631fdb67f631f61419e473 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r--resources/tools/presentation/generator_tables.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index 2e2dfef0ca..e76cc62f5e 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -463,8 +463,9 @@ def _tpc_sort_table(table):
# Sort the tables:
tbl_new.sort(key=lambda rel: rel[0], reverse=False)
tbl_see.sort(key=lambda rel: rel[0], reverse=False)
- tbl_see.sort(key=lambda rel: rel[-1], reverse=False)
- tbl_delta.sort(key=lambda rel: rel[-1], reverse=True)
+ tbl_see.sort(key=lambda rel: rel[-2], reverse=False)
+ tbl_delta.sort(key=lambda rel: rel[0], reverse=False)
+ tbl_delta.sort(key=lambda rel: rel[-2], reverse=True)
# Put the tables together:
table = list()
@@ -549,7 +550,7 @@ def _tpc_generate_html_table(header, data, output_file_name):
xanchor=u"left",
y=1.045,
yanchor=u"top",
- active=len(menu_items) - 1,
+ active=len(menu_items) - 2,
buttons=list(buttons)
)
],
@@ -813,6 +814,7 @@ def table_perf_comparison(table, input_data):
pass
elif item[-4] == u"Not tested":
item.append(u"New in CSIT-2001")
+ item.append(u"New in CSIT-2001")
# elif topo == u"2n-skx" and u"dot1q" in tbl_dict[tst_name][u"name"]:
# item.append(u"See footnote [1]")
# footnote = True
@@ -822,7 +824,7 @@ def table_perf_comparison(table, input_data):
)
item.append(round(delta, 2))
item.append(round(d_stdev, 2))
- if (len(item) == len(header)) and (item[-3] != u"Not tested"):
+ if (len(item) == len(header)) and (item[-4] != u"Not tested"):
tbl_lst.append(item)
tbl_lst = _tpc_sort_table(tbl_lst)
@@ -1105,6 +1107,7 @@ def table_perf_comparison_nic(table, input_data):
pass
elif item[-4] == u"Not tested":
item.append(u"New in CSIT-2001")
+ item.append(u"New in CSIT-2001")
# elif topo == u"2n-skx" and u"dot1q" in tbl_dict[tst_name][u"name"]:
# item.append(u"See footnote [1]")
# footnote = True
@@ -1114,7 +1117,7 @@ def table_perf_comparison_nic(table, input_data):
)
item.append(round(delta, 2))
item.append(round(d_stdev, 2))
- if (len(item) == len(header)) and (item[-3] != u"Not tested"):
+ if (len(item) == len(header)) and (item[-4] != u"Not tested"):
tbl_lst.append(item)
tbl_lst = _tpc_sort_table(tbl_lst)