Table recap: bouton cols 'Vides' seulement si il y en a.
This commit is contained in:
parent
d55e393c15
commit
ddea186a48
@ -159,6 +159,8 @@ class ResultatsSemestreBUT(NotesTableCompat):
|
|||||||
# moyenne sur les UE:
|
# moyenne sur les UE:
|
||||||
if len(self.sem_cube[etud_idx, mod_idx]):
|
if len(self.sem_cube[etud_idx, mod_idx]):
|
||||||
return np.nanmean(self.sem_cube[etud_idx, mod_idx])
|
return np.nanmean(self.sem_cube[etud_idx, mod_idx])
|
||||||
|
# note: si toutes les valeurs sont nan, on va déclencher ici
|
||||||
|
# un RuntimeWarning: Mean of empty slice
|
||||||
return np.nan
|
return np.nan
|
||||||
|
|
||||||
def compute_etud_ue_coef(self, etudid: int, ue: UniteEns) -> float:
|
def compute_etud_ue_coef(self, etudid: int, ue: UniteEns) -> float:
|
||||||
|
@ -146,10 +146,13 @@ $(function () {
|
|||||||
action: toggle_col_but_visibility,
|
action: toggle_col_but_visibility,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
buttons.push({ // modules vides
|
// S'il y a des colonnes vides:
|
||||||
text: '<span data-group="col_empty">Vides</span>',
|
if ($('table.table_recap td.col_empty').length > 0) {
|
||||||
action: toggle_col_but_visibility,
|
buttons.push({ // modules vides
|
||||||
});
|
text: '<span data-group="col_empty">Vides</span>',
|
||||||
|
action: toggle_col_but_visibility,
|
||||||
|
});
|
||||||
|
}
|
||||||
// Boutons admission (pas en jury)
|
// Boutons admission (pas en jury)
|
||||||
if (!$('table.table_recap').hasClass("jury")) {
|
if (!$('table.table_recap').hasClass("jury")) {
|
||||||
buttons.push(
|
buttons.push(
|
||||||
|
Loading…
Reference in New Issue
Block a user