From 216372d76068fb4e6f4108745a99c15028c20e5e Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Mon, 3 May 2021 06:09:46 -0600 Subject: [PATCH] lf_graph.py lf_report.py lf_report_test.py : updated headers --- py-scripts/lf_graph.py | 4 ++++ py-scripts/lf_report.py | 4 +++- py-scripts/lf_report_test.py | 18 ++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/py-scripts/lf_graph.py b/py-scripts/lf_graph.py index 2e23b79c..e7af1382 100644 --- a/py-scripts/lf_graph.py +++ b/py-scripts/lf_graph.py @@ -11,6 +11,10 @@ SETUP: EXAMPLE: see: /py-scritps/lf_report_test.py for example +COPYWRITE + Copyright 2021 Candela Technologies Inc + License: Free to distribute and modify. LANforge systems must be licensed. + INCLUDE_IN_README ''' diff --git a/py-scripts/lf_report.py b/py-scripts/lf_report.py index 7782d3a2..92945aa9 100755 --- a/py-scripts/lf_report.py +++ b/py-scripts/lf_report.py @@ -6,7 +6,7 @@ NAME: lf_report.py PURPOSE: This program is a helper class for reporting results for a lanforge python script. -The class will generate an output directory based on date and time in the /home/lanforge/reports-data/ . +The class will generate an output directory based on date and time in the /home/lanforge/html-reports/ . If the reports-data is not present then the date and time directory will be created in the current directory. The banner and Candela Technology logo will be copied in the results directory. The results directory may be over written and many of the other paramaters during construction. @@ -21,6 +21,8 @@ LICENSE: Free to distribute and modify. LANforge systems must be licensed. Copyright 2021 Candela Technologies Inc + +INCLUDE_IN_README ''' import os diff --git a/py-scripts/lf_report_test.py b/py-scripts/lf_report_test.py index 9921ead9..eff1fbd1 100644 --- a/py-scripts/lf_report_test.py +++ b/py-scripts/lf_report_test.py @@ -1,4 +1,22 @@ #!/usr/bin/env python3 +''' +NAME: lf_report_test.py + +PURPOSE: +Common file for testing lf_report and lf_graph Library generates html and pdf output + +SETUP: +/lanforge/html-reports directory needs to be present or output generated in local file + +EXAMPLE: +./lf_report_test.py : currently script does not accept input + +COPYWRITE + Copyright 2021 Candela Technologies Inc + License: Free to distribute and modify. LANforge systems must be licensed. + +INCLUDE_IN_README +''' import matplotlib.pyplot as plt import matplotlib as mpl