aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-06-26 08:52:46 +0200
committerTibor Frank <tifrank@cisco.com>2020-06-26 08:52:46 +0200
commitf278b55927de4aa59cf87ac1e752effd1c64035c (patch)
tree075795ae34a4b3bebde0c1596d359b81f3b01d34 /resources/tools/presentation/generator_tables.py
parent8ac495fdf576693d4c627a3211765facc688cfdc (diff)
Report 2005: Add data, fix sorting in comp tables
Change-Id: Ib0c42f5b9fbd9b9f9ebf0bff437ef9d145e6ddda 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.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index eee95d6092..29a398a19f 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -1662,7 +1662,6 @@ def table_comparison(table, input_data):
if comparisons:
for row in tbl_lst:
new_row = deepcopy(row)
- add_to_tbl = False
for comp in comparisons:
ref_itm = row[int(comp[u"reference"])]
if ref_itm is None and \
@@ -1678,16 +1677,16 @@ def table_comparison(table, input_data):
ref_itm[u"mean"], cmp_itm[u"mean"],
ref_itm[u"stdev"], cmp_itm[u"stdev"]
)
- new_row.append(
- {
+ if delta is None:
+ break
+ else:
+ new_row.append({
u"mean": delta * 1e6,
u"stdev": d_stdev * 1e6
- }
- )
- add_to_tbl = True
+ })
else:
- new_row.append(None)
- if add_to_tbl:
+ break
+ else:
tbl_cmp_lst.append(new_row)
try: