Skip to content

Commit

Permalink
Change l'identification du poids modifié
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainipp committed Oct 14, 2024
1 parent 9a78970 commit 62e520a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openfisca_france_data/reforms/variables_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ class weight_individus(Variable):
definition_period = YEAR

def formula(individu, period):
if france_data_tax_benefit_system.variables["weight_familles"].is_input_variable():
if france_data_tax_benefit_system.variables["weight_familles"].unit == "base_weight":
return(individu.famille('weight_familles', period))
elif france_data_tax_benefit_system.variables["weight_foyers"].is_input_variable():
elif france_data_tax_benefit_system.variables["weight_foyers"].unit == "base_weight":
return(individu.foyer_fiscal('weight_foyers', period))
elif france_data_tax_benefit_system.variables["weight_menages"].is_input_variable():
elif france_data_tax_benefit_system.variables["weight_menages"].unit == "base_weight":
return(individu.menage('weight_menages', period))
return individu.menage('wprm', period)

Expand Down

0 comments on commit 62e520a

Please sign in to comment.