From 2c8818eb795807ad59e7dcf32b300e3049bb4e98 Mon Sep 17 00:00:00 2001 From: "maimouni.mouhcine" <mouhcine.maimouni@cefe.cnrs.fr> Date: Mon, 3 Jun 2024 09:54:42 +0200 Subject: [PATCH] Ajout du rapport --- src/Report/report.aux | 17 + src/Report/report.bbl | 9 + src/Report/report.blg | 50 +++ src/Report/report.log | 568 +++++++++++++++++++++++++++++++ src/Report/report.out | 0 src/Report/report.py | 154 ++++++++- src/pages/1-samples_selection.py | 30 +- 7 files changed, 812 insertions(+), 16 deletions(-) create mode 100644 src/Report/report.aux create mode 100644 src/Report/report.bbl create mode 100644 src/Report/report.blg create mode 100644 src/Report/report.log create mode 100644 src/Report/report.out diff --git a/src/Report/report.aux b/src/Report/report.aux new file mode 100644 index 0000000..bf440a5 --- /dev/null +++ b/src/Report/report.aux @@ -0,0 +1,17 @@ +\relax +\providecommand\hyper@newdestlabel[2]{} +\providecommand\HyField@AuxAddToFields[1]{} +\providecommand\HyField@AuxAddToCoFields[2]{} +\citation{Lesnoff2020} +\providecommand*\caption@xref[2]{\@setref\relax\@undefined{#1}} +\newlabel{fig:votre_graphique}{{\caption@xref {fig:votre_graphique}{ on input line 58}}{1}{Data Visualization}{figure.caption.3}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces PCA}}{1}{figure.caption.4}\protected@file@percent } +\newlabel{fig:frog}{{1}{1}{PCA}{figure.caption.4}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces PCA}}{2}{figure.caption.5}\protected@file@percent } +\newlabel{fig:frog}{{2}{2}{PCA}{figure.caption.5}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3}{\ignorespaces PCA}}{2}{figure.caption.6}\protected@file@percent } +\newlabel{fig:frog}{{3}{2}{PCA}{figure.caption.6}{}} +\bibstyle{apalike} +\bibdata{refs.bib} +\bibcite{Lesnoff2020}{Lesnoff et~al., } +\gdef \@abspage@last{3} diff --git a/src/Report/report.bbl b/src/Report/report.bbl new file mode 100644 index 0000000..91e8e42 --- /dev/null +++ b/src/Report/report.bbl @@ -0,0 +1,9 @@ +\begin{thebibliography}{} + +\bibitem[Lesnoff et~al., ]{Lesnoff2020} +Lesnoff, M., Metz, M., and Roger, J. +\newblock Comparison of locally weighted pls strategies for regression and + discrimination on agronomic nir data. +\newblock {\em Journal of Chemometrics}, 34(5). + +\end{thebibliography} diff --git a/src/Report/report.blg b/src/Report/report.blg new file mode 100644 index 0000000..7e22f5f --- /dev/null +++ b/src/Report/report.blg @@ -0,0 +1,50 @@ +This is BibTeX, Version 0.99d +Capacity: max_strings=200000, hash_size=200000, hash_prime=170003 +The top-level auxiliary file: report.aux +Reallocating 'name_of_file' (item size: 1) to 8 items. +The style file: apalike.bst +Reallocating 'name_of_file' (item size: 1) to 9 items. +Database file #1: refs.bib +Warning--empty year in Lesnoff2020 +You've used 1 entry, + 1935 wiz_defined-function locations, + 479 strings with 3885 characters, +and the built_in function-call counts, 360 in all, are: += -- 32 +> -- 18 +< -- 0 ++ -- 6 +- -- 6 +* -- 29 +:= -- 71 +add.period$ -- 3 +call.type$ -- 1 +change.case$ -- 8 +chr.to.int$ -- 1 +cite$ -- 2 +duplicate$ -- 13 +empty$ -- 22 +format.name$ -- 7 +if$ -- 65 +int.to.chr$ -- 1 +int.to.str$ -- 0 +missing$ -- 1 +newline$ -- 8 +num.names$ -- 3 +pop$ -- 8 +preamble$ -- 1 +purify$ -- 8 +quote$ -- 0 +skip$ -- 10 +stack$ -- 0 +substring$ -- 12 +swap$ -- 1 +text.length$ -- 0 +text.prefix$ -- 0 +top$ -- 0 +type$ -- 6 +warning$ -- 1 +while$ -- 2 +width$ -- 0 +write$ -- 14 +(There was 1 warning) diff --git a/src/Report/report.log b/src/Report/report.log new file mode 100644 index 0000000..1f4d231 --- /dev/null +++ b/src/Report/report.log @@ -0,0 +1,568 @@ +This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 24.1) (preloaded format=pdflatex 2024.5.6) 3 JUN 2024 09:38 +entering extended mode + restricted \write18 enabled. + %&-line parsing enabled. +**./report.tex +(report.tex +LaTeX2e <2023-11-01> patch level 1 +L3 programming layer <2024-01-04> +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls +Document Class: article 2023/05/17 v1.4n Standard LaTeX document class +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo +File: size10.clo 2023/05/17 v1.4n Standard LaTeX file (size option) +) +\c@part=\count187 +\c@section=\count188 +\c@subsection=\count189 +\c@subsubsection=\count190 +\c@paragraph=\count191 +\c@subparagraph=\count192 +\c@figure=\count193 +\c@table=\count194 +\abovecaptionskip=\skip48 +\belowcaptionskip=\skip49 +\bibindent=\dimen140 +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/fancyhdr\fancyhdr.st +y +Package: fancyhdr 2024/04/23 v4.2 Extensive control of page headers and footers + +\f@nch@headwidth=\skip50 +\f@nch@O@elh=\skip51 +\f@nch@O@erh=\skip52 +\f@nch@O@olh=\skip53 +\f@nch@O@orh=\skip54 +\f@nch@O@elf=\skip55 +\f@nch@O@erf=\skip56 +\f@nch@O@olf=\skip57 +\f@nch@O@orf=\skip58 +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphicx.st +y +Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics (DPC,SPQR) + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty +Package: keyval 2022/05/29 v1.15 key=value parser (DPC) +\KV@toks@=\toks17 +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphics.st +y +Package: graphics 2022/03/10 v1.4e Standard LaTeX Graphics (DPC,SPQR) + (C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/graphics\trig.sty +Package: trig 2021/08/11 v1.11 sin cos tan (DPC) +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\graphic +s.cfg +File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration +) +Package graphics Info: Driver file: pdftex.def on input line 107. + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/graphics-def\pdftex. +def +File: pdftex.def 2022/09/22 v1.2b Graphics/color driver for pdftex +)) +\Gin@req@height=\dimen141 +\Gin@req@width=\dimen142 +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/geometry\geometry.st +y +Package: geometry 2020/01/02 v5.9 Page Geometry + (C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/generic/iftex\ifvtex.sty +Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead. +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/generic/iftex\iftex.sty +Package: iftex 2022/02/03 v1.0f TeX engine tests +)) +\Gm@cnth=\count195 +\Gm@cntv=\count196 +\c@Gm@tempcnt=\count197 +\Gm@bindingoffset=\dimen143 +\Gm@wd@mp=\dimen144 +\Gm@odd@mp=\dimen145 +\Gm@even@mp=\dimen146 +\Gm@layoutwidth=\dimen147 +\Gm@layoutheight=\dimen148 +\Gm@layouthoffset=\dimen149 +\Gm@layoutvoffset=\dimen150 +\Gm@dimlist=\toks18 + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/geometry\geometry.cf +g)) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/caption\caption.sty +Package: caption 2023/08/05 v3.6o Customizing captions (AR) + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/caption\caption3.sty +Package: caption3 2023/07/31 v2.4d caption3 kernel (AR) +\caption@tempdima=\dimen151 +\captionmargin=\dimen152 +\caption@leftmargin=\dimen153 +\caption@rightmargin=\dimen154 +\caption@width=\dimen155 +\caption@indent=\dimen156 +\caption@parindent=\dimen157 +\caption@hangindent=\dimen158 +Package caption Info: Standard document class detected. +) +\c@caption@flags=\count198 +\c@continuedfloat=\count199 +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/caption\subcaption.s +ty +Package: subcaption 2023/07/28 v1.6b Sub-captions (AR) +Package caption Info: New subtype `subfigure' on input line 238. +\c@subfigure=\count266 +Package caption Info: New subtype `subtable' on input line 238. +\c@subtable=\count267 +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/hyperref\hyperref.st +y +Package: hyperref 2023-11-26 v7.01g Hypertext links for LaTeX + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/generic/infwarerr\infwarer +r.sty +Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO) +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/kvsetkeys\kvsetkeys. +sty +Package: kvsetkeys 2022-10-05 v1.19 Key value parser (HO) +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/generic/kvdefinekeys\kvdef +inekeys.sty +Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO) +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/generic/pdfescape\pdfescap +e.sty +Package: pdfescape 2019/12/09 v1.15 Implements pdfTeX's escape features (HO) + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/generic/ltxcmds\ltxcmds.st +y +Package: ltxcmds 2023-12-04 v1.26 LaTeX kernel commands for general use (HO) +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/generic/pdftexcmds\pdftexc +mds.sty +Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO +) +Package pdftexcmds Info: \pdf@primitive is available. +Package pdftexcmds Info: \pdf@ifprimitive is available. +Package pdftexcmds Info: \pdfdraftmode found. +)) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/hycolor\hycolor.sty +Package: hycolor 2020-01-27 v1.10 Color options for hyperref/bookmark (HO) +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/letltxmacro\letltxma +cro.sty +Package: letltxmacro 2019/12/03 v1.6 Let assignment for LaTeX macros (HO) +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/auxhook\auxhook.sty +Package: auxhook 2019-12-17 v1.6 Hooks for auxiliary files (HO) +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/hyperref\nameref.sty +Package: nameref 2023-11-26 v2.56 Cross-referencing by name of section + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/refcount\refcount.st +y +Package: refcount 2019/12/15 v3.6 Data extraction from label references (HO) +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/generic/gettitlestring\get +titlestring.sty +Package: gettitlestring 2019/12/15 v1.6 Cleanup title references (HO) + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/kvoptions\kvoptions. +sty +Package: kvoptions 2022-06-15 v3.15 Key value format for package options (HO) +)) +\c@section@level=\count268 +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/etoolbox\etoolbox.st +y +Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW) +\etb@tempcnta=\count269 +) +\@linkdim=\dimen159 +\Hy@linkcounter=\count270 +\Hy@pagecounter=\count271 + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/hyperref\pd1enc.def +File: pd1enc.def 2023-11-26 v7.01g Hyperref: PDFDocEncoding definition (HO) +Now handling font encoding PD1 ... +... no UTF-8 mapping file for font encoding PD1 +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/generic/intcalc\intcalc.st +y +Package: intcalc 2019/12/15 v1.3 Expandable calculations with integers (HO) +) +\Hy@SavedSpaceFactor=\count272 + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/hyperref\puenc.def +File: puenc.def 2023-11-26 v7.01g Hyperref: PDF Unicode definition (HO) +Now handling font encoding PU ... +... no UTF-8 mapping file for font encoding PU +) +Package hyperref Info: Hyper figures OFF on input line 4181. +Package hyperref Info: Link nesting OFF on input line 4186. +Package hyperref Info: Hyper index ON on input line 4189. +Package hyperref Info: Plain pages OFF on input line 4196. +Package hyperref Info: Backreferencing OFF on input line 4201. +Package hyperref Info: Implicit mode ON; LaTeX internals redefined. +Package hyperref Info: Bookmarks ON on input line 4448. +\c@Hy@tempcnt=\count273 + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/url\url.sty +\Urlmuskip=\muskip16 +Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc. +) +LaTeX Info: Redefining \url on input line 4786. +\XeTeXLinkMargin=\dimen160 + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/generic/bitset\bitset.sty +Package: bitset 2019/12/09 v1.3 Handle bit-vector datatype (HO) + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/generic/bigintcalc\bigintc +alc.sty +Package: bigintcalc 2019/12/15 v1.5 Expandable calculations on big integers (HO +) +)) +\Fld@menulength=\count274 +\Field@Width=\dimen161 +\Fld@charsize=\dimen162 +Package hyperref Info: Hyper figures OFF on input line 6065. +Package hyperref Info: Link nesting OFF on input line 6070. +Package hyperref Info: Hyper index ON on input line 6073. +Package hyperref Info: backreferencing OFF on input line 6080. +Package hyperref Info: Link coloring OFF on input line 6085. +Package hyperref Info: Link coloring with OCG OFF on input line 6090. +Package hyperref Info: PDF/A mode OFF on input line 6095. + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/base\atbegshi-ltx.st +y +Package: atbegshi-ltx 2021/01/10 v1.0c Emulation of the original atbegshi +package with kernel methods +) +\Hy@abspage=\count275 +\c@Item=\count276 +\c@Hfootnote=\count277 +) +Package hyperref Info: Driver (autodetected): hpdftex. + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/hyperref\hpdftex.def +File: hpdftex.def 2023-11-26 v7.01g Hyperref driver for pdfTeX + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/base\atveryend-ltx.s +ty +Package: atveryend-ltx 2020/08/19 v1.0a Emulation of the original atveryend pac +kage +with kernel methods +) +\Fld@listcount=\count278 +\c@bookmark@seq@number=\count279 + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/rerunfilecheck\rerun +filecheck.sty +Package: rerunfilecheck 2022-07-10 v1.10 Rerun checks for auxiliary files (HO) + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/generic/uniquecounter\uniq +uecounter.sty +Package: uniquecounter 2019/12/15 v1.4 Provide unlimited unique counter (HO) +) +Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2 +85. +) +\Hy@SectionHShift=\skip59 +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/hyphenat\hyphenat.st +y +Package: hyphenat 2009/09/02 v2.3c hyphenation utilities +\langwohyphens=\language79 +LaTeX Info: Redefining \_ on input line 43. +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/booktabs\booktabs.st +y +Package: booktabs 2020/01/12 v1.61803398 Publication quality tables +\heavyrulewidth=\dimen163 +\lightrulewidth=\dimen164 +\cmidrulewidth=\dimen165 +\belowrulesep=\dimen166 +\belowbottomsep=\dimen167 +\aboverulesep=\dimen168 +\abovetopsep=\dimen169 +\cmidrulesep=\dimen170 +\cmidrulekern=\dimen171 +\defaultaddspace=\dimen172 +\@cmidla=\count280 +\@cmidlb=\count281 +\@aboverulesep=\dimen173 +\@belowrulesep=\dimen174 +\@thisruleclass=\count282 +\@lastruleclass=\count283 +\@thisrulewidth=\dimen175 +) (C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/xcolor\xcolor.sty +Package: xcolor 2023/11/15 v3.01 LaTeX color extensions (UK) + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\color.c +fg +File: color.cfg 2016/01/02 v1.6 sample color configuration +) +Package xcolor Info: Driver file: pdftex.def on input line 274. + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/graphics\mathcolor.l +tx) +Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1350. +Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1354. +Package xcolor Info: Model `RGB' extended on input line 1366. +Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1368. +Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1369. +Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1370. +Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1371. +Package xcolor Info: Model `Gray' substituted by `gray' on input line 1372. +Package xcolor Info: Model `wave' substituted by `hsb' on input line 1373. +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/psnfss\times.sty +Package: times 2020/03/25 PSNFSS-v9.3 (SPQR) +) +LaTeX Font Info: Trying to load font information for OT1+ptm on input line 3 +2. + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/psnfss\ot1ptm.fd +File: ot1ptm.fd 2001/06/04 font definitions for OT1/ptm. +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend- +pdftex.def +File: l3backend-pdftex.def 2024-01-04 L3 backend support: PDF output (pdfTeX) +\l__color_backend_stack_int=\count284 +\l__pdf_internal_box=\box51 +) (report.aux + +LaTeX Warning: Label `fig:frog' multiply defined. + + +LaTeX Warning: Label `fig:frog' multiply defined. + +) +\openout1 = `report.aux'. + +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 32. +LaTeX Font Info: ... okay on input line 32. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 32. +LaTeX Font Info: ... okay on input line 32. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 32. +LaTeX Font Info: ... okay on input line 32. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 32. +LaTeX Font Info: ... okay on input line 32. +LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 32. +LaTeX Font Info: ... okay on input line 32. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 32. +LaTeX Font Info: ... okay on input line 32. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 32. +LaTeX Font Info: ... okay on input line 32. +LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 32. +LaTeX Font Info: ... okay on input line 32. +LaTeX Font Info: Checking defaults for PU/pdf/m/n on input line 32. +LaTeX Font Info: ... okay on input line 32. + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/context/base/mkii\supp-pdf +.mkii +[Loading MPS to PDF converter (version 2006.09.02).] +\scratchcounter=\count285 +\scratchdimen=\dimen176 +\scratchbox=\box52 +\nofMPsegments=\count286 +\nofMParguments=\count287 +\everyMPshowfont=\toks19 +\MPscratchCnt=\count288 +\MPscratchDim=\dimen177 +\MPnumerator=\count289 +\makeMPintoPDFobject=\count290 +\everyMPtoPDFconversion=\toks20 +) +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/epstopdf-pkg\epstopd +f-base.sty +Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf +Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4 +85. + +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/00miktex\epstopdf-sy +s.cfg +File: epstopdf-sys.cfg 2021/03/18 v2.0 Configuration of epstopdf for MiKTeX +)) +*geometry* driver: auto-detecting +*geometry* detected driver: pdftex +*geometry* verbose mode - [ preamble ] result: +* driver: pdftex +* paper: a4paper +* layout: <same size as paper> +* layoutoffset:(h,v)=(0.0pt,0.0pt) +* modes: +* h-part:(L,W,R)=(56.9055pt, 483.69687pt, 56.9055pt) +* v-part:(T,H,B)=(42.67912pt, 717.00946pt, 85.35826pt) +* \paperwidth=597.50787pt +* \paperheight=845.04684pt +* \textwidth=483.69687pt +* \textheight=717.00946pt +* \oddsidemargin=-15.36449pt +* \evensidemargin=-15.36449pt +* \topmargin=-66.59087pt +* \headheight=42.67912pt +* \headsep=25.0pt +* \topskip=10.0pt +* \footskip=30.0pt +* \marginparwidth=57.0pt +* \marginparsep=11.0pt +* \columnsep=10.0pt +* \skip\footins=9.0pt plus 4.0pt minus 2.0pt +* \hoffset=0.0pt +* \voffset=0.0pt +* \mag=1000 +* \@twocolumnfalse +* \@twosidefalse +* \@mparswitchfalse +* \@reversemarginfalse +* (1in=72.27pt=25.4mm, 1cm=28.453pt) + +Package caption Info: Begin \AtBeginDocument code. +Package caption Info: hyperref package is loaded. +Package caption Info: End \AtBeginDocument code. +Package hyperref Info: Link coloring OFF on input line 32. +(report.out) (report.out) +\@outlinefile=\write3 +\openout3 = `report.out'. + + +Underfull \hbox (badness 10000) in paragraph at lines 37--42 + + [] + +<Figures/Spectra_Plot.png, id=4, 2168.1pt x 505.89pt> +File: Figures/Spectra_Plot.png Graphic file (type png) +<use Figures/Spectra_Plot.png> +Package pdftex.def Info: Figures/Spectra_Plot.png used on input line 57. +(pdftex.def) Requested size: 483.69687pt x 112.85542pt. +<Figures/Elbow.png, id=6, 702.625pt x 501.875pt> +File: Figures/Elbow.png Graphic file (type png) +<use Figures/Elbow.png> +Package pdftex.def Info: Figures/Elbow.png used on input line 67. +(pdftex.def) Requested size: 159.62085pt x 114.01208pt. +<Figures/graphe_loadings.png, id=7, 702.625pt x 501.875pt> +File: Figures/graphe_loadings.png Graphic file (type png) +<use Figures/graphe_loadings.png> +Package pdftex.def Info: Figures/graphe_loadings.png used on input line 71. +(pdftex.def) Requested size: 159.62085pt x 114.01208pt. +<images/logo_cefe.png, id=8, 64.0794pt x 64.0794pt> +File: images/logo_cefe.png Graphic file (type png) +<use images/logo_cefe.png> +Package pdftex.def Info: images/logo_cefe.png used on input line 84. +(pdftex.def) Requested size: 48.37263pt x 48.37329pt. + +Package fancyhdr Warning: \headheight is too small (42.67912pt): +(fancyhdr) Make it at least 51.97333pt, for example: +(fancyhdr) \setlength{\headheight}{51.97333pt}. +(fancyhdr) You might also make \topmargin smaller to compensate: + +(fancyhdr) \addtolength{\topmargin}{-9.2942pt}. + +[1{C:/Users/maimouni/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map}{C:/Users +/maimouni/AppData/Local/Programs/MiKTeX/fonts/enc/dvips/base/8r.enc} + + <./images/logo_cefe.png> <./Figures/Spectra_Plot.png> <./Figures/Elbow.png> <. +/Figures/graphe_loadings.png>] +<Figures/plot_axe1_axe2.png, id=25, 702.625pt x 501.875pt> +File: Figures/plot_axe1_axe2.png Graphic file (type png) +<use Figures/plot_axe1_axe2.png> +Package pdftex.def Info: Figures/plot_axe1_axe2.png used on input line 89. +(pdftex.def) Requested size: 159.62085pt x 114.01208pt. +<Figures/plot_axe1_axe3.png, id=26, 702.625pt x 501.875pt> +File: Figures/plot_axe1_axe3.png Graphic file (type png) +<use Figures/plot_axe1_axe3.png> +Package pdftex.def Info: Figures/plot_axe1_axe3.png used on input line 93. +(pdftex.def) Requested size: 159.62085pt x 114.01208pt. +<Figures/plot_axe2_axe3.png, id=27, 702.625pt x 501.875pt> +File: Figures/plot_axe2_axe3.png Graphic file (type png) +<use Figures/plot_axe2_axe3.png> +Package pdftex.def Info: Figures/plot_axe2_axe3.png used on input line 97. +(pdftex.def) Requested size: 159.62085pt x 114.01208pt. +<Figures/graphe_hotelling.png, id=28, 702.625pt x 501.875pt> +File: Figures/graphe_hotelling.png Graphic file (type png) +<use Figures/graphe_hotelling.png> +Package pdftex.def Info: Figures/graphe_hotelling.png used on input line 111. +(pdftex.def) Requested size: 217.66211pt x 155.47243pt. +<Figures/graphe_influence.png, id=29, 702.625pt x 501.875pt> +File: Figures/graphe_influence.png Graphic file (type png) +<use Figures/graphe_influence.png> +Package pdftex.def Info: Figures/graphe_influence.png used on input line 116. +(pdftex.def) Requested size: 217.66211pt x 155.47243pt. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line 127. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line 127. + +Underfull \hbox (badness 10000) in paragraph at lines 123--136 + + [] + + +Underfull \hbox (badness 10000) in paragraph at lines 123--136 + + [] + +LaTeX Font Info: Trying to load font information for TS1+ptm on input line 1 +39. +(C:\Users\maimouni\AppData\Local\Programs\MiKTeX\tex/latex/psnfss\ts1ptm.fd +File: ts1ptm.fd 2001/06/04 font definitions for TS1/ptm. +) +File: images/logo_cefe.png Graphic file (type png) +<use images/logo_cefe.png> +Package pdftex.def Info: images/logo_cefe.png used on input line 147. +(pdftex.def) Requested size: 48.37263pt x 48.37329pt. + + +Package fancyhdr Warning: \headheight is too small (42.67912pt): +(fancyhdr) Make it at least 51.97333pt, for example: +(fancyhdr) \setlength{\headheight}{51.97333pt}. +(fancyhdr) You might also make \topmargin smaller to compensate: + +(fancyhdr) \addtolength{\topmargin}{-9.2942pt}. + +[2 <./Figures/plot_axe1_axe2.png> <./Figures/plot_axe1_axe3.png> <./Figures/plo +t_axe2_axe3.png> <./Figures/graphe_hotelling.png> <./Figures/graphe_influence.p +ng>] (report.bbl) +File: images/logo_cefe.png Graphic file (type png) +<use images/logo_cefe.png> +Package pdftex.def Info: images/logo_cefe.png used on input line 157. +(pdftex.def) Requested size: 48.37263pt x 48.37329pt. + + +Package fancyhdr Warning: \headheight is too small (42.67912pt): +(fancyhdr) Make it at least 51.97333pt, for example: +(fancyhdr) \setlength{\headheight}{51.97333pt}. +(fancyhdr) You might also make \topmargin smaller to compensate: + +(fancyhdr) \addtolength{\topmargin}{-9.2942pt}. + +[3] (report.aux) + *********** +LaTeX2e <2023-11-01> patch level 1 +L3 programming layer <2024-01-04> + *********** + + +LaTeX Warning: There were multiply-defined labels. + +Package rerunfilecheck Info: File `report.out' has not changed. +(rerunfilecheck) Checksum: D41D8CD98F00B204E9800998ECF8427E;0. + ) +Here is how much of TeX's memory you used: + 11210 strings out of 474485 + 183046 string characters out of 5742319 + 1939542 words of memory out of 5000000 + 33366 multiletter control sequences out of 15000+600000 + 569129 words of font info for 51 fonts, out of 8000000 for 9000 + 1141 hyphenation exceptions out of 8191 + 75i,15n,79p,501b,506s stack positions out of 10000i,1000n,20000p,200000b,200000s +<C:/Users/maimouni/AppData/Local/Programs/MiKTeX/fonts/type1/urw/times/utmb8a +.pfb><C:/Users/maimouni/AppData/Local/Programs/MiKTeX/fonts/type1/urw/times/utm +r8a.pfb><C:/Users/maimouni/AppData/Local/Programs/MiKTeX/fonts/type1/urw/times/ +utmri8a.pfb> +Output written on report.pdf (3 pages, 455138 bytes). +PDF statistics: + 68 PDF objects out of 1000 (max. 8388607) + 13 named destinations out of 1000 (max. 500000) + 46 words of extra memory for PDF output out of 10000 (max. 10000000) + diff --git a/src/Report/report.out b/src/Report/report.out new file mode 100644 index 0000000..e69de29 diff --git a/src/Report/report.py b/src/Report/report.py index 180c4aa..d26eafa 100644 --- a/src/Report/report.py +++ b/src/Report/report.py @@ -5,13 +5,17 @@ import pandas as pd def report(*args): to_report=[] + j=0 for arg in args: if isinstance(arg, str): to_report.append(arg) + elif isinstance(arg, list): + to_report.extend(arg) elif isinstance(arg, pd.DataFrame): - df_name = 'df' + str(args.index(arg)) + df_name = 'df' + str(j) + j+=1 globals()[df_name] = arg - print(to_report) + #print(to_report) latex_report = "" latex_report += r"""\documentclass[a4paper,10pt]{article} \usepackage{fancyhdr} @@ -81,24 +85,146 @@ def report(*args): Please follow this template exactly and DO NOT CHANGE THE FONT SIZE, MARGINS, HEADER, FOOTER, ETC OF THE TEMPLATE. Start typing your paper in this font in this way. Section headings are to be in 10pt bold and full caps. Number headings consecutively. Leave a single blank line before each Section Heading and one blank line between the heading and the first line of text. When you want to start a new paragraph do not drop a line do it simply like this. Use MS Word/Latex formatting exactly as given in this paragraph. Do NOT change the spacing 'before' and 'after' to try and squeeze more in. """ - latex_report += df0.to_latex(escape = True) latex_report += r""" This is now a new paragraph which starts with a tab space and when you are starting new sentences you must put a space after the full stop. Just like this. Text should be single spaced, left and right justified, providing 25.4mm left margin and 25.4mm right margin. Leave a 25.4mm margin at top and a 25.4mm margin at bottom and the page size should be set as A4. You will also notice that the font to use is Times New Roman and the font size is 10pt. """ - if 'sample' in to_report: + if 'sample' and 'csv' in to_report: latex_report += r"""\subsection*{Data Visualization} Here we have a sub-heading. There is no blank line after the sub-heading. You can have one level of subheadings but not a third i.e. you cannot have Section 1.1.1 as a subheading. + \begin{center} + Spectral Data Visualization + \end{center} + + \begin{figure}[ht] + \centering + \includegraphics[width=1\linewidth]{""" + to_report[3] + r"""} + \label{fig:votre_graphique} + \end{figure} + + \textbf{Exploratory Data Analysis-Multivariable Data Analysis} + """ + if 'hdb' in to_report: + latex_report += r""" + \begin{figure}[ht] + \centering + \includegraphics[width=0.5\linewidth]{""" + to_report[5] + r"""} + \label{fig:votre_graphique} + \end{figure} + """ + if 'kmeans' in to_report or 'AP' in to_report: + latex_report += r""" + \begin{figure}[h] + \centering + \begin{minipage}[b]{0.33\linewidth} + \centering + \includegraphics[width=\linewidth]{""" + to_report[4] + r"""} + \end{minipage}% + \begin{minipage}[b]{0.33\linewidth} + \centering + \includegraphics[width=\linewidth]{""" + to_report[5] + r"""} + \end{minipage}% + \caption{\label{fig:frog}PCA} + \end{figure} + """ + + latex_report += r""" + This is now a new paragraph which starts with a tab space and when you are starting new sentences you must put a space after the full stop. Just like this. Text should be single spaced, left and right justified, providing 25.4mm left margin and 25.4mm right margin. Leave a 25.4mm margin at top and a 25.4mm margin at bottom and the page size should be set as A4. You will also notice that the font to use is Times New Roman and the font size is 10pt. + + """ + latex_report += r""" + This is now a new paragraph which starts with a tab space and when you are starting new sentences you must put a space after the full stop. Just like this. Text should be single spaced, left and right justified, providing 25.4mm left margin and 25.4mm right margin. Leave a 25.4mm margin at top and a 25.4mm margin at bottom and the page size should be set as A4. You will also notice that the font to use is Times New Roman and the font size is 10pt. + """ + + latex_report += r""" + + \begin{center} + Graphique des PCA + \end{center} + \begin{figure}[h] + \centering + \begin{minipage}[b]{0.33\linewidth} + \centering + \includegraphics[width=\linewidth]{""" + to_report[6] + r"""} + \end{minipage}% + \begin{minipage}[b]{0.33\linewidth} + \centering + \includegraphics[width=\linewidth]{""" + to_report[7] + r"""} + \end{minipage}% + \begin{minipage}[b]{0.33\linewidth} + \centering + \includegraphics[width=\linewidth]{""" + to_report[8] + r"""} + \end{minipage} + \caption{\label{fig:frog}PCA} + \end{figure} + """ + latex_report += r""" + This is now a new paragraph which starts with a tab space and when you are starting new sentences you must put a space after the full stop. Just like this. Text should be single spaced, left and right justified, providing 25.4mm left margin and 25.4mm right margin. Leave a 25.4mm margin at top and a 25.4mm margin at bottom and the page size should be set as A4. You will also notice that the font to use is Times New Roman and the font size is 10pt. + + + \begin{center} + \end{center} + \begin{figure}[h] + \centering + \begin{minipage}[b]{0.45\linewidth} + \centering + \includegraphics[width=\linewidth]{""" + to_report[9] + r"""} + \end{minipage}% + \hspace{0.05\linewidth} % Adds space between the two images + \begin{minipage}[b]{0.45\linewidth} + \centering + \includegraphics[width=\linewidth]{""" + to_report[10] + r"""} + \end{minipage} + \caption{\label{fig:frog}PCA} + \end{figure} + """ + latex_report+= r""" + This is now a new paragraph which starts with a tab space and when you are starting new sentences you must put a space after the full stop. Just like this. Text should be single spaced, left and right justified, providing 25.4mm left margin and 25.4mm right margin. Leave a 25.4mm margin at top and a 25.4mm margin at bottom and the page size should be set as A4. You will also notice that the font to use is Times New Roman and the font size is 10pt. + + \textbf{Selected samples for chemical analysis} + \newline + \newline + \newline + """ + num_samples = to_report[0] + nb_clu=to_report[1] + + if 'kmeans' in to_report or 'AP' in to_report: + latex_report += df0.to_latex(escape=True) + latex_report += r""" \begin{itemize} - \item If you want to list bullet points you can do so; - \item This is the second point; - \item This is a third bullet point; - \item A fourth bullet point; - \item But you can. + \item The total number of samples: """ + str(num_samples) + r""" + \item The number of selected samples for chemical analysis: """ + str(nb_clu) + r""" \end{itemize} - After a list you must leave a single blank line and remember to add the indent if you are starting a new paragraph. + After a list, you must leave a single blank line and remember to add the indent if you are starting a new paragraph. + + """ + if 'sample' and 'dx' in to_report: + latex_report += r"""\subsection*{Data Visualization} + \begin{center} + Graphique des PCA + \end{center} + \begin{figure}[h] + \centering + \begin{minipage}[b]{0.33\linewidth} + \centering + \includegraphics[width=\linewidth]{plot_axe1_axe2.png} + \end{minipage}% + \begin{minipage}[b]{0.33\linewidth} + \centering + \includegraphics[width=\linewidth]{plot_axe1_axe3.png} + \end{minipage}% + \begin{minipage}[b]{0.33\linewidth} + \centering + \includegraphics[width=\linewidth]{plot_axe2_axe3.png} + \end{minipage} + \caption{\label{fig:frog}PCA} + \end{figure} + """ + latex_report += r""" + This is now a new paragraph which starts with a tab space and when you are starting new sentences you must put a space after the full stop. Just like this. Text should be single spaced, left and right justified, providing 25.4mm left margin and 25.4mm right margin. Leave a 25.4mm margin at top and a 25.4mm margin at bottom and the page size should be set as A4. You will also notice that the font to use is Times New Roman and the font size is 10pt. """ if 'model' in to_report: latex_report += r""" @@ -206,7 +332,7 @@ def report(*args): def compile_latex(): # path to pdflatex - pdflatex_path = Path("C:/Donnees/Logiciels/Papps/PortableApps/Notepad++Portable/LaTEX/texmfs/install/miktex/bin/") + pdflatex_path = Path("C:/Users/maimouni/AppData/Local/Programs/MiKTeX/miktex/bin/x64/") filename_path = Path("Report/") filename = 'report.tex' # run pdflatex with bibtex compilation (2nd run) @@ -220,9 +346,9 @@ def compile_latex(): proc.communicate() # remove pdflatex compilation files extensions = ['.log', '.aux', '.bbl', '.blg', '.out'] - for ext in extensions: - os.unlink(str(filename_path / filename[:-4]) + ext) + #for ext in extensions: + #os.unlink(str(filename_path / filename[:-4]) + ext) # open the report proc = subprocess.Popen([str(filename[:-4]) + '.pdf'], cwd = filename_path, shell=True) proc.communicate() -# compile_latex() \ No newline at end of file +# compile_latex() diff --git a/src/pages/1-samples_selection.py b/src/pages/1-samples_selection.py index ad63500..6a047b5 100644 --- a/src/pages/1-samples_selection.py +++ b/src/pages/1-samples_selection.py @@ -11,6 +11,9 @@ from Modules import * # # Injecter le code HTML du bandeau # st.markdown(bandeau_html, unsafe_allow_html=True) add_header() +tcr=pd.DataFrame() +sam=pd.DataFrame() +sam1=pd.DataFrame() local_css(css_file / "style_model.css") @@ -69,7 +72,7 @@ if data_file: os.unlink(tmp_path) - + ## Visualize spectra if not spectra.empty: # retrieve columns name and rows name of spectra @@ -478,4 +481,27 @@ if not spectra.empty: st.plotly_chart(fig, use_container_width=True) fig.write_image("./Report/figures/graphe_hotelling.png", format="png") #st.write() - #st.write() \ No newline at end of file + #st.write() +Nb_ech = str(tcr.shape[0]) +nb_clu = str(sam1.shape[0]) +Ac_Km = ['Spectra_Plot.png', 'Elbow.png', 'graphe_loadings.png', 'plot_axe1_axe2.png', 'plot_axe1_axe3.png', 'plot_axe2_axe3.png', 'graphe_hotelling.png', 'graphe_influence.png'] + +# Streamlit container +with st.container(): + header3, header4 = st.columns(2) + if header3.button("Exporter le rapport"): + if test == '.csv': + if dim_red_method == dim_red_methods[1] and clus_method == cluster_methods[1]: + latex_report = report.report(sam, tcr, Nb_ech, nb_clu, 'sample', Ac_Km, 'csv', 'kmeans') + report.compile_latex() + elif dim_red_method == dim_red_methods[1] and clus_method == cluster_methods[2]: + latex_report = report.report(sam, tcr, Nb_ech, nb_clu, 'sample', Ac_Km, 'csv', 'hdb') + report.compile_latex() + elif dim_red_method == dim_red_methods[1] and clus_method == cluster_methods[3]: + latex_report = report.report(sam, tcr, Nb_ech, nb_clu, 'sample', Ac_Km, 'csv', 'AP') + report.compile_latex() + else: + latex_report = report.report(sam, 'sample', 'dx') + report.compile_latex() + else: + pass \ No newline at end of file -- GitLab