Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
PAL: Round report comparisons to 1 digit more
[csit.git]
/
resources
/
tools
/
presentation
/
generator_tables.py
diff --git
a/resources/tools/presentation/generator_tables.py
b/resources/tools/presentation/generator_tables.py
index
81bfa78
..
28f42ec
100644
(file)
--- 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 = (
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 = (
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]:
replace(u"nan", u"NaN")
)
if len(new_itm.rsplit(u" ", 1)[-1]) > max_lens[idx]: