Skip to content

Commit

Permalink
Update openfisca_france/model/covid19.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mahdi Ben Jelloul <mahdi.benjelloul@gmail.com>
  • Loading branch information
2 people authored and Brice Fabre committed Jan 25, 2021
1 parent a7e1902 commit dc925cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfisca_france/model/covid19.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def formula_2020_05(famille, period, parameters):
base_n_1 = rsa_n_1 + ass_n_1
montant_n_1 = base_n_1 * (montants.base + montants.par_enfant * af_nbenf_n_1) + not_(base_n_1) * al_n_1 * af_nbenf_n_1 * montants.par_enfant

return (montant>0)*montant + (montant==0)*(montant_n_1>0)*montant_n_1
return (montant > 0) * montant + (montant == 0) * (montant_n_1 > 0) * montant_n_1

class covid_activite_partielle_eligible(Variable):
entity = Individu
Expand Down

0 comments on commit dc925cd

Please sign in to comment.