Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
cab556a
)
PAL: Fix table_comparison again
85/27285/1
author
Tibor Frank
<tifrank@cisco.com>
Wed, 27 May 2020 08:57:46 +0000
(10:57 +0200)
committer
Tibor Frank
<tifrank@cisco.com>
Wed, 27 May 2020 08:57:46 +0000
(10:57 +0200)
Change-Id: Ie408afd7bb8390ebe2fc90eca6daf8da44d22e3b
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/generator_tables.py
patch
|
blob
|
history
diff --git
a/resources/tools/presentation/generator_tables.py
b/resources/tools/presentation/generator_tables.py
index
fbac776
..
c06e492
100644
(file)
--- a/
resources/tools/presentation/generator_tables.py
+++ b/
resources/tools/presentation/generator_tables.py
@@
-1762,7
+1762,9
@@
def table_comparison(table, input_data):
for line in tbl_cmp_lst:
row = [line[0], ]
for idx, itm in enumerate(line[1:]):
- if itm is None:
+ if itm is None or not isinstance(itm, dict) or \
+ itm.get(u'mean', None) is None or \
+ itm.get(u'stdev', None) is None:
new_itm = u"NT"
else:
if idx < len(cols):