From c0c78074b224e07594b394bf3a1dbd44be1eb43b Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 30 Jun 2022 15:11:30 +0200 Subject: [PATCH] Fix: calcul du malus BUT par UE. Close #417 --- app/comp/moy_ue.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/comp/moy_ue.py b/app/comp/moy_ue.py index 2d337a3d0..df0e1a79d 100644 --- a/app/comp/moy_ue.py +++ b/app/comp/moy_ue.py @@ -506,7 +506,8 @@ def compute_malus( ] ) 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.fillna(0.0, inplace=True)