Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NIRS_Workflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CEFE
PACE
NIRS_Workflow
Commits
89111198
Commit
89111198
authored
10 months ago
by
BARTHES Nicolas
Browse files
Options
Downloads
Patches
Plain Diff
import report in Modules.py
parent
8265fde5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Modules.py
+1
-0
1 addition, 0 deletions
src/Modules.py
src/Report/__init__.py
+0
-0
0 additions, 0 deletions
src/Report/__init__.py
src/Report/report.py
+2
-2
2 additions, 2 deletions
src/Report/report.py
with
3 additions
and
2 deletions
src/Modules.py
+
1
−
0
View file @
89111198
...
...
@@ -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.Miscellaneous
import
prediction
,
download_results
,
plot_spectra
,
local_css
from
style.header
import
add_header
from
Report
import
report
css_file
=
Path
(
"
style/
"
)
local_css
(
css_file
/
"
style.css
"
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/Report/__init__.py
0 → 100644
+
0
−
0
View file @
89111198
This diff is collapsed.
Click to expand it.
src/Report/report.py
+
2
−
2
View file @
89111198
...
...
@@ -192,7 +192,7 @@ def report(*argv):
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';}
latex_report
=
report
(
'
sample
'
,
'
predict
'
,)
#
latex_report = report('sample', 'predict',)
def
compile_latex
():
# path to pdflatex
...
...
@@ -216,4 +216,4 @@ def compile_latex():
# open the report
proc
=
subprocess
.
Popen
([
filename
[:
-
4
]
+
'
.pdf
'
],
shell
=
True
)
proc
.
communicate
()
compile_latex
()
\ No newline at end of file
# compile_latex()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment