1
0
forked from ScoDoc/ScoDoc

Fix: bonus additif, valeur max.

This commit is contained in:
Emmanuel Viennet 2022-04-05 15:33:38 +02:00
parent 7577097db8
commit 01c0328636

View File

@ -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)