Skip to content

Commit

Permalink
fix tests avant 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
clallemand committed Jul 21, 2023
1 parent f4edad5 commit e0bc5d7
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions openfisca_france_data/erfs_fpr/input_data_builder/step_06_final.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,24 @@ def create_input_data_frame(temporary_store = None, year = None, export_flattene
"traitement_indiciaire_brut",
]

var_menages = [
'idmen',
'loyer',
'statut_occupation_logement',
'taxe_habitation',
'wprm',
'zone_apl',
'logement_conventionne',
'prest_precarite_hand' # on récupère la variable de montant de aah / caah pour pouvoir faire une imputation du handicap
]
if year >= 2018:
var_menages = [
'idmen',
'loyer',
'statut_occupation_logement',
'taxe_habitation',
'wprm',
'zone_apl',
'logement_conventionne',
'prest_precarite_hand' # on récupère la variable de montant de aah / caah pour pouvoir faire une imputation du handicap
]
else:
var_menages = [
'idmen',
'loyer',
'taxe_habitation',
'wprm',
]

individus = create_ids_and_roles(individus)
individus = individus[var_individus].copy()
Expand Down

0 comments on commit e0bc5d7

Please sign in to comment.