forked from ScoDoc/ScoDoc
Fix #451
This commit is contained in:
parent
9413384a04
commit
54bf4a4f0f
@ -808,6 +808,12 @@ class ResultatsSemestre(ResultatsCache):
|
||||
coef = modimpl.module.coefficient or 0
|
||||
row_coef[colid] = fmt_note(coef)
|
||||
notes = self.modimpl_notes(modimpl.id, ue.id)
|
||||
if np.isnan(notes).all():
|
||||
# aucune note valide
|
||||
row_min[colid] = np.nan
|
||||
row_max[colid] = np.nan
|
||||
moy = np.nan
|
||||
else:
|
||||
row_min[colid] = fmt_note(np.nanmin(notes))
|
||||
row_max[colid] = fmt_note(np.nanmax(notes))
|
||||
moy = np.nanmean(notes)
|
||||
|
Loading…
Reference in New Issue
Block a user