Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
2 changed files with 29 additions and 13 deletions
Showing only changes of commit e675064cae - Show all commits

View File

@ -106,9 +106,6 @@ class TableTag(object):
Returns:
Le dataframe complet de synthèse
"""
if not self.is_significatif():
return None
# Les tags visés
tags_tries = self.get_all_significant_tags()
if not tags_cibles:
@ -123,6 +120,9 @@ class TableTag(object):
else:
df = pd.DataFrame(index=self.etudids)
if not self.is_significatif():
return df
# Ajout des données par tags
for tag in tags_cibles:
if tag in self.moyennes_tags:

View File

@ -90,7 +90,18 @@ class JuryPE(object):
diplome : l'année d'obtention du diplome BUT et du jury de PE (généralement février XXXX)
"""
def __init__(self, diplome: int, formsemestre_id_base, options=None):
def __init__(
self,
diplome: int,
formsemestre_id_base,
options={
"moyennes_tags": True,
"moyennes_ue_res_sae": True,
"moyennes_ues_rcues": True,
"min_max_moy": False,
"publipostage": False,
},
):
pe_affichage.pe_start_log()
self.diplome = diplome
"L'année du diplome"
@ -151,7 +162,11 @@ class JuryPE(object):
self._gen_xls_synthese_jury_par_tag(zipfile)
self._gen_html_synthese_par_etudiant(zipfile)
except Exception as e:
if pe_affichage.PE_DEBUG == True:
raise e
else:
pe_affichage.pe_print(str(e))
# raise e
# et le log
self._add_log_to_zip(zipfile)
@ -222,6 +237,7 @@ class JuryPE(object):
) as writer:
onglets = []
for res_sem_tag in self.ressembuttags.values():
if res_sem_tag.is_significatif():
onglet = res_sem_tag.get_repr(verbose=True)
onglet = onglet.replace("Semestre ", "S")
onglets += ["📊" + onglet]