Skip to content
Snippets Groups Projects
Commit 89111198 authored by BARTHES Nicolas's avatar BARTHES Nicolas
Browse files

import report in Modules.py

parent 8265fde5
No related branches found
No related tags found
No related merge requests found
...@@ -4,5 +4,6 @@ from Class_Mod import LWPLSR, list_files, metrics, TpeIpls, reg_plot, resid_plot ...@@ -4,5 +4,6 @@ from Class_Mod import LWPLSR, list_files, metrics, TpeIpls, reg_plot, resid_plot
from Class_Mod.DATA_HANDLING import * from Class_Mod.DATA_HANDLING import *
from Class_Mod.Miscellaneous import prediction, download_results, plot_spectra, local_css from Class_Mod.Miscellaneous import prediction, download_results, plot_spectra, local_css
from style.header import add_header from style.header import add_header
from Report import report
css_file = Path("style/") css_file = Path("style/")
local_css(css_file / "style.css") local_css(css_file / "style.css")
\ No newline at end of file
...@@ -192,7 +192,7 @@ def report(*argv): ...@@ -192,7 +192,7 @@ def report(*argv):
latex_file.write(latex_report) latex_file.write(latex_report)
# create the Tex file - sections in args will be displayed: {'sample':'Sample Selection';'model':'Model Creation';'predict':'Predictions';'help':'LaTEX help for figs and tables';} # create the Tex file - sections in args will be displayed: {'sample':'Sample Selection';'model':'Model Creation';'predict':'Predictions';'help':'LaTEX help for figs and tables';}
latex_report = report('sample', 'predict',) # latex_report = report('sample', 'predict',)
def compile_latex(): def compile_latex():
# path to pdflatex # path to pdflatex
...@@ -216,4 +216,4 @@ def compile_latex(): ...@@ -216,4 +216,4 @@ def compile_latex():
# open the report # open the report
proc = subprocess.Popen([filename[:-4] + '.pdf'], shell=True) proc = subprocess.Popen([filename[:-4] + '.pdf'], shell=True)
proc.communicate() proc.communicate()
compile_latex() # compile_latex()
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment