forked from ScoDoc/ScoDoc
Bonus: clip > 0 cas DUT/no max
This commit is contained in:
parent
d17a2238e4
commit
514623e8cf
@ -211,6 +211,8 @@ class BonusSportAdditif(BonusSport):
|
||||
bonus_moy_arr = np.clip(
|
||||
bonus_moy_arr, 0.0, self.bonus_max, out=bonus_moy_arr
|
||||
)
|
||||
else: # necessaire pour éviter bonus négatifs !
|
||||
bonus_moy_arr = np.clip(bonus_moy_arr, 0.0, 20.0, out=bonus_moy_arr)
|
||||
|
||||
# en APC, bonus_moy_arr est (nb_etuds, nb_ues_non_bonus)
|
||||
if self.formsemestre.formation.is_apc() or self.classic_use_bonus_ues:
|
||||
|
Loading…
Reference in New Issue
Block a user