forked from ScoDoc/DocScoDoc
Fix: moy gen. quand aucune note avec skip_empty_ues
This commit is contained in:
parent
df304281ba
commit
f264bc438f
@ -68,7 +68,7 @@ def compute_sem_moys_apc_using_ects(
|
||||
try:
|
||||
if skip_empty_ues:
|
||||
# annule les coefs des UE sans notes (NaN)
|
||||
ects = np.where(etud_moy_ue_df.isna(), 0, np.array(ects))
|
||||
ects = np.where(etud_moy_ue_df.isna(), 0.0, np.array(ects, dtype=float))
|
||||
# ects est devenu nb_etuds x nb_ues
|
||||
moy_gen = (etud_moy_ue_df * ects).sum(axis=1) / ects.sum(axis=1)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user