diff options
author | Tibor Frank <tifrank@cisco.com> | 2019-09-03 17:52:02 +0000 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2019-09-03 18:11:56 +0000 |
commit | 92d09115493a50599ed5bea9126be28229b4211f (patch) | |
tree | 7fb416ec6a3743d813d1600e577c010e53c66187 /resources/tools/presentation | |
parent | ac688f80adb649bd04ecbe1daa79748a439a9e19 (diff) |
Report: Comparison tables
Change-Id: I90f635f62573154e37a319ca1cbb760401d17c05
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation')
-rw-r--r-- | resources/tools/presentation/generator_tables.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index a5f7b79dc9..606cb815d8 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -411,14 +411,14 @@ def table_performance_comparison(table, input_data): item.append(round(stdev(data_t) / 1000000, 2)) else: item.extend(["Not tested", "Not tested"]) - if item[-4] is not None and item[-2] is not None and item[-4] != 0: + if item[-4] != "Not tested" and item[-2] != "Not tested" and item[-4] != 0: item.append(int(relative_change(float(item[-4]), float(item[-2])))) - elif item[-4] is None or item[-2] is None or item[-4] == 0: + elif item[-4] == "Not tested": item.append("New in CSIT-1908") elif topo == "2n-skx" and "dot1q" in tbl_dict[tst_name]["name"]: item.append("See footnote [1]") footnote = True - if (len(item) == len(header)) and (item[-3] is not None): + if (len(item) == len(header)) and (item[-3] != "Not tested"): tbl_lst.append(item) # Sort the table according to the relative change @@ -679,14 +679,14 @@ def table_performance_comparison_nic(table, input_data): item.append(round(stdev(data_t) / 1000000, 2)) else: item.extend(["Not tested", "Not tested"]) - if item[-4] is not None and item[-2] is not None and item[-4] != 0: + if item[-4] != "Not tested" and item[-2] != "Not tested" and item[-4] != 0: item.append(int(relative_change(float(item[-4]), float(item[-2])))) - elif item[-4] is None or item[-2] is None or item[-4] == 0: + elif item[-4] == "Not tested": item.append("New in CSIT-1908") elif topo == "2n-skx" and "dot1q" in tbl_dict[tst_name]["name"]: item.append("See footnote [1]") footnote = True - if (len(item) == len(header)) and (item[-3] is not None): + if (len(item) == len(header)) and (item[-3] != "Not tested"): tbl_lst.append(item) # Sort the table according to the relative change |