aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2022-06-28 10:11:33 +0200
committerTibor Frank <tifrank@cisco.com>2022-06-28 11:52:21 +0200
commite076cc8c47e7c10a48d0c5410967cd0269b98723 (patch)
treec3c6afa76961f34f29825ce36838b877907ea33b /resources/tools/presentation/generator_tables.py
parent9748f8e1b20bc528fb0143a08f111f48426ada3e (diff)
Report: Add normalized comp tabels - static content
Change-Id: I0a9782248fee91f3db2fb5db00c800c7e5447f32 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.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index b8ceffafb5..ee08511915 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -1877,7 +1877,10 @@ def table_comparison(table, input_data):
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)