Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Report: Comparison tables
[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
8ebeadd
..
14130e5
100644
(file)
--- a/
resources/tools/presentation/generator_tables.py
+++ b/
resources/tools/presentation/generator_tables.py
@@
-552,7
+552,7
@@
def _tpc_generate_html_table(header, data, out_file_name, legend=u"",
align=params[u"align-hdr"][idx],
font=dict(
family=u"Courier New",
align=params[u"align-hdr"][idx],
font=dict(
family=u"Courier New",
- size=1
3
+ size=1
2
)
)
)
)
@@
-571,7
+571,7
@@
def _tpc_generate_html_table(header, data, out_file_name, legend=u"",
align=params[u"align-itm"][idx],
font=dict(
family=u"Courier New",
align=params[u"align-itm"][idx],
font=dict(
family=u"Courier New",
- size=1
3
+ size=1
2
)
)
)
)
)
)
@@
-617,7
+617,7
@@
def _tpc_generate_html_table(header, data, out_file_name, legend=u"",
align=params[u"align-itm"][idx],
font=dict(
family=u"Courier New",
align=params[u"align-itm"][idx],
font=dict(
family=u"Courier New",
- size=1
3
+ size=1
2
)
)
)
)
)
)
@@
-644,7
+644,7
@@
def _tpc_generate_html_table(header, data, out_file_name, legend=u"",
)
if title:
rst_file.write(f"{title}\n")
)
if title:
rst_file.write(f"{title}\n")
- rst_file.write(f"{u'
~
' * len(title)}\n\n")
+ rst_file.write(f"{u'
`
' * len(title)}\n\n")
rst_file.write(
u".. raw:: html\n\n"
f' <iframe frameborder="0" scrolling="no" '
rst_file.write(
u".. raw:: html\n\n"
f' <iframe frameborder="0" scrolling="no" '
@@
-1000,8
+1000,8
@@
def table_perf_comparison(table, input_data):
if rca_data:
footnote = rca_data.get(u"footnote", u"")
if footnote:
if rca_data:
footnote = rca_data.get(u"footnote", u"")
if footnote:
- txt_file.write(f
ootnote
)
- txt_file.write(u":END")
+ txt_file.write(f
"\n{footnote}"
)
+ txt_file.write(u"
\n
:END")
# Generate html table:
_tpc_generate_html_table(
# Generate html table:
_tpc_generate_html_table(
@@
-1009,7
+1009,8
@@
def table_perf_comparison(table, input_data):
tbl_lst,
table[u'output-file'],
legend=legend,
tbl_lst,
table[u'output-file'],
legend=legend,
- footnote=footnote
+ footnote=footnote,
+ title=table.get(u"title", u"")
)
)
@@
-1370,8
+1371,8
@@
def table_perf_comparison_nic(table, input_data):
if rca_data:
footnote = rca_data.get(u"footnote", u"")
if footnote:
if rca_data:
footnote = rca_data.get(u"footnote", u"")
if footnote:
- txt_file.write(f
ootnote
)
- txt_file.write(u":END")
+ txt_file.write(f
"\n{footnote}"
)
+ txt_file.write(u"
\n
:END")
# Generate html table:
_tpc_generate_html_table(
# Generate html table:
_tpc_generate_html_table(
@@
-1379,7
+1380,8
@@
def table_perf_comparison_nic(table, input_data):
tbl_lst,
table[u'output-file'],
legend=legend,
tbl_lst,
table[u'output-file'],
legend=legend,
- footnote=footnote
+ footnote=footnote,
+ title=table.get(u"title", u"")
)
)
@@
-1553,7
+1555,8
@@
def table_nics_comparison(table, input_data):
header,
tbl_lst,
table[u'output-file'],
header,
tbl_lst,
table[u'output-file'],
- legend=legend
+ legend=legend,
+ title=table.get(u"title", u"")
)
)
@@
-1733,7
+1736,8
@@
def table_soak_vs_ndr(table, input_data):
header,
tbl_lst,
table[u'output-file'],
header,
tbl_lst,
table[u'output-file'],
- legend=legend
+ legend=legend,
+ title=table.get(u"title", u"")
)
)
@@
-2585,7
+2589,7
@@
def table_comparison(table, input_data):
header_csv.append(f"Stdev({col[u'title']})")
for comp in comparisons:
header_csv.append(
header_csv.append(f"Stdev({col[u'title']})")
for comp in comparisons:
header_csv.append(
- f"Avg({comp.get(u'title', u'')}"
+ f"Avg({comp.get(u'title', u'')}
)
"
)
header_csv.append(
f"Stdev({comp.get(u'title', u'')})"
)
header_csv.append(
f"Stdev({comp.get(u'title', u'')})"
@@
-2682,7
+2686,7
@@
def table_comparison(table, input_data):
txt_file.write(legend)
if footnote:
txt_file.write(footnote)
txt_file.write(legend)
if footnote:
txt_file.write(footnote)
- txt_file.write(u":END")
+ txt_file.write(u"
\n
:END")
# Generate html table:
_tpc_generate_html_table(
# Generate html table:
_tpc_generate_html_table(