1
0
forked from ScoDoc/ScoDoc

Fix: calcul malus sur données vides

This commit is contained in:
Emmanuel Viennet 2022-07-01 09:48:08 +02:00
parent bf8614a386
commit 5a8add1aac
2 changed files with 3 additions and 2 deletions

View File

@ -496,7 +496,8 @@ def compute_malus(
"""
ues_idx = [ue.id for ue in ues]
malus = pd.DataFrame(index=modimpl_inscr_df.index, columns=ues_idx, dtype=float)
if len(sem_modimpl_moys.flat) == 0: # vide
return malus
if len(sem_modimpl_moys.shape) > 2:
# BUT: ne retient que la 1er composante du malus qui est scalaire
# au sens ou chaque note de malus n'affecte que la moyenne de l'UE

View File

@ -1,7 +1,7 @@
# -*- mode: python -*-
# -*- coding: utf-8 -*-
SCOVERSION = "9.3.11"
SCOVERSION = "9.3.12"
SCONAME = "ScoDoc"