X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_tables.py;h=d28ff9ac875010a8f201778a2c8515331eb35321;hp=b8ceffafb5a6bc278987a49fffee9e9cf2da17d3;hb=refs%2Fchanges%2F11%2F36511%2F2;hpb=9748f8e1b20bc528fb0143a08f111f48426ada3e diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index b8ceffafb5..d28ff9ac87 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -1873,11 +1873,15 @@ def table_comparison(table, input_data): row = [tst_data[u"name"], ] for col in cols: row_data = tst_data.get(col["title"], None) - if normalize and row_data: + if normalize and row_data and row_data.get("mean", None) and \ + row_data.get("stdev", None): groups = re.search(REGEX_TOPO_ARCH, col["title"]) topo_arch = groups.group(0) if groups else "" norm_factor = table["norm_factor"].get(topo_arch, 1.0) - row_data_norm = row_data * norm_factor + row_data_norm = { + "mean": row_data["mean"] * norm_factor, + "stdev": row_data["stdev"] * norm_factor + } else: row_data_norm = row_data row.append(row_data_norm)