aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-03-27 08:34:00 +0100
committerTibor Frank <tifrank@cisco.com>2020-03-27 07:39:08 +0000
commit60a267a638ae91862cda5b425d84d059874d8023 (patch)
treedcf059761211c828baa3cb8d5b0a434e57198210
parenta3aa91de0e1053bfa239646faada790cc72791d7 (diff)
Report: Fix: Header of comparison tables
Change-Id: Ic20ee4ceb79f9c10bcfe95bc20fa044c8e65202d Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 30b3fba0385f66897b9330801d8e80e348bb2652)
-rw-r--r--resources/tools/presentation/generator_tables.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index 13658ae235..ba85e47023 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -1326,12 +1326,13 @@ def table_nics_comparison(table, input_data):
# Generate csv tables:
with open(f"{table[u'output-file']}.csv", u"wt") as file_handler:
- file_handler.write(u",".join(header) + u"\n")
+ file_handler.write(u";".join(header) + u"\n")
for test in tbl_lst:
- file_handler.write(u",".join([str(item) for item in test]) + u"\n")
+ file_handler.write(u";".join([str(item) for item in test]) + u"\n")
convert_csv_to_pretty_txt(f"{table[u'output-file']}.csv",
- f"{table[u'output-file']}.txt")
+ f"{table[u'output-file']}.txt",
+ delimiter=u";")
# Generate html table:
_tpc_generate_html_table(header, tbl_lst, f"{table[u'output-file']}.html")
@@ -1367,7 +1368,7 @@ def table_soak_vs_ndr(table, input_data):
u"Delta [%]",
u"Stdev of delta [%]"
]
- header_str = u",".join(header) + u"\n"
+ header_str = u";".join(header) + u"\n"
except (AttributeError, KeyError) as err:
logging.error(f"The model is invalid, missing parameter: {repr(err)}")
return
@@ -1478,9 +1479,11 @@ def table_soak_vs_ndr(table, input_data):
with open(csv_file, u"wt") as file_handler:
file_handler.write(header_str)
for test in tbl_lst:
- file_handler.write(u",".join([str(item) for item in test]) + u"\n")
+ file_handler.write(u";".join([str(item) for item in test]) + u"\n")
- convert_csv_to_pretty_txt(csv_file, f"{table[u'output-file']}.txt")
+ convert_csv_to_pretty_txt(
+ csv_file, f"{table[u'output-file']}.txt", delimiter=u";"
+ )
# Generate html table:
_tpc_generate_html_table(header, tbl_lst, f"{table[u'output-file']}.html")