aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2021-11-08 13:43:29 +0100
committerTibor Frank <tifrank@cisco.com>2021-11-12 12:19:45 +0000
commitff96438d1e235c243b4209abc92b97526b865ce5 (patch)
tree6d79b61309a31859ca4cb4457f4e739f2b098cec
parent06c636a0fb8978441432f3550ea275e18e270463 (diff)
PAL: Round report comparisons to 1 digit more
Change-Id: Ifc2fdd04270628053646a6b3d8b15bc730325eb6 Signed-off-by: Vratko Polak <vrpolak@cisco.com> (cherry picked from commit e21ca2707937c91f66af9c3309a426aa61be7502)
-rw-r--r--resources/tools/presentation/generator_tables.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index 81bfa783e1..28f42ec089 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -2006,14 +2006,14 @@ def table_comparison(table, input_data):
else:
if idx < len(cols):
new_itm = (
- f"{round(float(itm[u'mean']) / 1e6, 1)} "
- f"\u00B1{round(float(itm[u'stdev']) / 1e6, 1)}".
+ f"{round(float(itm[u'mean']) / 1e6, 2)} "
+ f"\u00B1{round(float(itm[u'stdev']) / 1e6, 2)}".
replace(u"nan", u"NaN")
)
else:
new_itm = (
- f"{round(float(itm[u'mean']) / 1e6, 1):+} "
- f"\u00B1{round(float(itm[u'stdev']) / 1e6, 1)}".
+ f"{round(float(itm[u'mean']) / 1e6, 2):+} "
+ f"\u00B1{round(float(itm[u'stdev']) / 1e6, 2)}".
replace(u"nan", u"NaN")
)
if len(new_itm.rsplit(u" ", 1)[-1]) > max_lens[idx]: