Report: Comparison tables
[csit.git] / resources / tools / presentation / generator_tables.py
index 8ebeadd..14130e5 100644 (file)
@@ -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",
-            size=13
+            size=12
         )
     )
 
@@ -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",
-                            size=13
+                            size=12
                         )
                     )
                 )
@@ -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",
-                        size=13
+                        size=12
                     )
                 )
             )
@@ -644,7 +644,7 @@ def _tpc_generate_html_table(header, data, out_file_name, legend=u"",
         )
         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" '
@@ -1000,8 +1000,8 @@ def table_perf_comparison(table, input_data):
         if rca_data:
             footnote = rca_data.get(u"footnote", u"")
             if footnote:
-                txt_file.write(footnote)
-        txt_file.write(u":END")
+                txt_file.write(f"\n{footnote}")
+        txt_file.write(u"\n:END")
 
     # 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,
-        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:
-                txt_file.write(footnote)
-        txt_file.write(u":END")
+                txt_file.write(f"\n{footnote}")
+        txt_file.write(u"\n:END")
 
     # 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,
-        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'],
-        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'],
-        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(
-            f"Avg({comp.get(u'title', u'')}"
+            f"Avg({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(u":END")
+        txt_file.write(u"\n:END")
 
     # Generate html table:
     _tpc_generate_html_table(