From f15a3448921c1d87ddbbb10f1b34c58bfc6c22a7 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Mon, 9 Aug 2021 06:16:17 -0600 Subject: [PATCH] lf_qa.py : updates for html outputs Signed-off-by: Chuck SmileyRekiere --- py-scripts/sandbox/lf_qa.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/py-scripts/sandbox/lf_qa.py b/py-scripts/sandbox/lf_qa.py index dca630f4..4ed84e73 100755 --- a/py-scripts/sandbox/lf_qa.py +++ b/py-scripts/sandbox/lf_qa.py @@ -159,7 +159,7 @@ class csv_sqlite_dash(): # may need .css class for formatting the images self.html_results += """ - """.format(png_server_img) + """.format(png_server_img=png_server_img) # use image from above to creat html display - this uses dynamic graphing #self.children_div.append(dcc.Graph(figure=kpi_fig)) @@ -178,7 +178,8 @@ class csv_sqlite_dash(): self.html_results +="""
""" self.children_div.append(html.A('{}_{}_{}_{}_kpi.html'.format(test_id_list[-1], group, test_tag, test_rig), href=kpi_html_path, target='_blank')) - self.html_results +="""{}_{}_{}_{}_kpi.html""".format(kpi_html_path,test_id_list[-1], group, test_tag, test_rig) + self.html_results +="""{test_id}_{group}_{test_tag}_{test_rig}_kpi.html + """.format(kpi_html_path=kpi_html_path,test_id=test_id_list[-1], group=group, test_tag=test_tag, test_rig=test_rig) # link to full test results index_html_path = self.server + kpi_path_list[-1] + "index.html" @@ -187,7 +188,8 @@ class csv_sqlite_dash(): self.html_results +="""
""" self.children_div.append(html.A('{}_{}_{}_{}_index.html'.format(test_id_list[-1], group, test_tag, test_rig), href=index_html_path, target='_blank')) - self.html_results +="""
{}_{}_{}_{}_kpi.html""".format(index_html_path,test_id_list[-1], group, test_tag, test_rig) + self.html_results +="""{test_id}_{group}_{test_tag}_{test_rig}_kpi.html + """.format(index_html_path=index_html_path,test_id=test_id_list[-1], group=group, test_tag=test_tag, test_rig=test_rig) self.children_div.append(html.Br()) self.children_div.append(html.Br()) self.children_div.append(html.Br()) @@ -301,8 +303,8 @@ Example: kpi_csv_sq.py --store --png --show --path (read _output_pdf="lf_qa.pdf" ) current_time = time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime()) - csv_results = "lf_qa-{}.csv".format(current_time) - csv_results = report.file_add_path(csv_results) + #csv_results = "lf_qa-{}.csv".format(current_time) + #csv_results = report.file_add_path(csv_results) outfile = "lf_qa-{}".format(current_time) outfile_path = report.file_add_path(outfile) report_path = report.get_report_path() @@ -313,10 +315,7 @@ Example: kpi_csv_sq.py --store --png --show --path (read _file = __file, _database = __database, _table = __table, - _png = __png, - _csv_results=csv_results, - _outfile=outfile_path, - _report_path=report_path,) + _png = __png) if args.store: csv_dash.store() if args.png: