mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 12:18:00 +00:00
report_library.py to lf_report.py
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
0
py-scripts/CandelaLogo2-90dpi-200x90-trans.png
Normal file → Executable file
0
py-scripts/CandelaLogo2-90dpi-200x90-trans.png
Normal file → Executable file
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
0
py-scripts/banner.png
Normal file → Executable file
0
py-scripts/banner.png
Normal file → Executable file
|
Before Width: | Height: | Size: 199 KiB After Width: | Height: | Size: 199 KiB |
@@ -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")
|
||||
@@ -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()
|
||||
Reference in New Issue
Block a user