From c8d961637d8b184006356c862fa66f3723be6c12 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 31 Jan 2022 22:30:11 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20calcul=20bonus=20en=20BUT=20si=20plusieu?= =?UTF-8?q?rs=20modules=20avec=20=C3=A9tuds=20non=20inscrits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/comp/bonus_spo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/comp/bonus_spo.py b/app/comp/bonus_spo.py index e7f97c13d..485c233f0 100644 --- a/app/comp/bonus_spo.py +++ b/app/comp/bonus_spo.py @@ -124,7 +124,7 @@ class BonusSport: # Annule les coefs des modules où l'étudiant n'est pas inscrit: modimpl_coefs_etuds = np.where( modimpl_inscr_spo_stacked, - np.stack([modimpl_coefs_spo.T] * nb_etuds), + np.stack([modimpl_coefs_spo] * nb_etuds), 0.0, ) else: