lf_qa.py : updates for html outputs

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-08-09 06:16:17 -06:00
parent a64ea0f45a
commit f15a344892

View File

@@ -159,7 +159,7 @@ class csv_sqlite_dash():
# may need .css class for formatting the images
self.html_results += """
<img src={png_server_img}>
""".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 +="""<br>"""
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 +="""<a href={}>{}_{}_{}_{}_kpi.html<a>""".format(kpi_html_path,test_id_list[-1], group, test_tag, test_rig)
self.html_results +="""<a href={kpi_html_path}>{test_id}_{group}_{test_tag}_{test_rig}_kpi.html<a>
""".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 +="""<br>"""
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 +="""<a href={}>{}_{}_{}_{}_kpi.html<a>""".format(index_html_path,test_id_list[-1], group, test_tag, test_rig)
self.html_results +="""<a href={index_html_path}>{test_id}_{group}_{test_tag}_{test_rig}_kpi.html<a>
""".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 <path to read kpi.csv> (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 <path to read kpi.csv> (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: