From 01c03286360c47cf5e32e1d9cfa27e5a1937ff34 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 5 Apr 2022 15:33:38 +0200 Subject: [PATCH] Fix: bonus additif, valeur max. --- 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 f57e2254..5a549132 100644 --- a/app/comp/bonus_spo.py +++ b/app/comp/bonus_spo.py @@ -228,7 +228,7 @@ class BonusSportAdditif(BonusSport): axis=1, ) # Seuil: bonus dans [min, max] (défaut [0,20]) - bonus_max = self.bonus_max or 0.0 + bonus_max = self.bonus_max or 20.0 np.clip(bonus_moy_arr, self.bonus_min, bonus_max, out=bonus_moy_arr) self.bonus_additif(bonus_moy_arr)