From 738cf0065513971ff6fa999710b973d44187ace7 Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand Date: Sat, 1 Apr 2017 13:35:50 +0300 Subject: [PATCH] enable Classe POV for evaluations --- notes_tools/reports/eval_reports.py | 4 ++-- .../reports/templates/tpl_reports_eval.tex | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/notes_tools/reports/eval_reports.py b/notes_tools/reports/eval_reports.py index 49cf2cb..dc460ba 100755 --- a/notes_tools/reports/eval_reports.py +++ b/notes_tools/reports/eval_reports.py @@ -58,7 +58,7 @@ def eval_report(classe, evalname, path = Path('./'), template = "tpl_reports_eva report_info = eval_info(classe, eval_df) students = evaluation.students_pov(quest_df, exo_df, eval_df) - #class_pov = term.class_pov(quest_df, exo_df, eval_df) + class_pov = evaluation.class_pov(quest_df, exo_df, eval_df) studs = {*this_df['Eleve']} present = {*eval_df['Eleve']} @@ -66,7 +66,7 @@ def eval_report(classe, evalname, path = Path('./'), template = "tpl_reports_eva datas = {"report_info": report_info, "students":students, - #"classe": class_pov, + "classe": class_pov, "absents": absents } diff --git a/notes_tools/reports/templates/tpl_reports_eval.tex b/notes_tools/reports/templates/tpl_reports_eval.tex index 851633f..f545dbb 100644 --- a/notes_tools/reports/templates/tpl_reports_eval.tex +++ b/notes_tools/reports/templates/tpl_reports_eval.tex @@ -6,6 +6,28 @@ \maketitle +%- if absents +Liste des élèves absents +\begin{itemize} +%- for e in absents + \item \Var{e} +%- endfor +\end{itemize} +%- endif + +\Var{classe.level_heatmap | includegraphics(document_path=directory, scale=0.6)} + +\Var{classe.hist_boxplot | includegraphics(document_path=directory, scale=0.6)} + +Compétences + +\Var{classe.pies_eff_pts_on_competence | includegraphics(document_path=directory, scale=0.5)} + + +Élements du programme + +\Var{classe.pies_eff_pts_on_domaine | includegraphics(document_path=directory, scale=0.5)} + \vfill %- endblock