Fix: calcul du malus BUT par UE. Close #417

This commit is contained in:
Emmanuel Viennet 2022-06-30 15:11:30 +02:00
parent 9f46849729
commit c0c78074b2

View File

@ -506,7 +506,8 @@ def compute_malus(
] ]
) )
if len(modimpl_mask): if len(modimpl_mask):
malus_moys = sem_modimpl_moys[:, modimpl_mask].sum(axis=1) # somme 1er composante du malus qui est scalaire
malus_moys = sem_modimpl_moys[:, modimpl_mask, 0].sum(axis=1)
malus[ue.id] = malus_moys malus[ue.id] = malus_moys
malus.fillna(0.0, inplace=True) malus.fillna(0.0, inplace=True)