report_library.py to lf_report.py

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-03-29 17:13:18 -06:00
parent 878cbe4009
commit eb495d49e0
4 changed files with 7 additions and 7 deletions

0
py-scripts/CandelaLogo2-90dpi-200x90-trans.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

0
py-scripts/banner.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 199 KiB

After

Width:  |  Height:  |  Size: 199 KiB

View File

@@ -10,7 +10,7 @@ import math
# internal candela references included during intial phases, to be deleted at future date
# https://candelatech.atlassian.net/wiki/spaces/LANFORGE/pages/372703360/Scripting+Data+Collection+March+2021
# base report class
class report_library():
class lf_report():
def __init__(self,
_dataframe="",
_title="LANForge Test Run Heading",
@@ -195,8 +195,8 @@ if __name__ == "__main__":
})
#report = report_library(_dataframe=dataframe)
report = report_library()
#report = lf_report(_dataframe=dataframe)
report = lf_report()
report.set_title("Banner Title One")
report.build_banner()
#report.set_title("Banner Title Two")

View File

@@ -5,7 +5,7 @@ import matplotlib as mpl
import numpy as np
import pandas as pd
import pdfkit
from report_library import report_library
from lf_report import lf_report
# Unit Test
if __name__ == "__main__":
@@ -28,8 +28,8 @@ if __name__ == "__main__":
})
#report = report_library(_dataframe=dataframe)
report = report_library()
#report = lf_report(_dataframe=dataframe)
report = lf_report()
report.set_title("Banner Title One")
report.build_banner()
#report.set_title("Banner Title Two")
@@ -51,6 +51,6 @@ if __name__ == "__main__":
#report.build_all()
html_file = report.write_html()
print("returned file ")
print("returned file {}".format(html_file))
print(html_file)
report.write_pdf()