Skip to content
Snippets Groups Projects
Commit 778e8540 authored by BENOIT MICHAUD's avatar BENOIT MICHAUD
Browse files

met les revalo aides logement en commentaire

parent db152078
Branches
No related tags found
No related merge requests found
Pipeline #19965 failed
Pipeline: leximpact-socio-fiscal-api

#19967

    Pipeline: OpenFisca-JSON-Model

    #19966

      ......@@ -87,33 +87,33 @@ def modify_parameters(parameters):
      ## Aides au logement :
      param_apl = parameters.prestations_sociales.aides_logement.allocations_logement
      ### aides au logement paramètres loyers
      list_param_al_loyer = [
      param_apl.locatif.formule.l_plafonds_loyers.par_zone,
      param_apl.locatif.formule.pp_particip_perso.r0_abattement.cas_general,
      param_apl.locatif.formule.c_forfait_charges,
      param_apl.foyer.al.formule.c_forfait_charges,
      param_apl.accession.formule.c_forfait_charges,
      param_apl.foyer.al.formule.l_plafonds_loyers,
      param_apl.foyer.apl.formule.e_equiv_loyers_eligible,
      param_apl.locatif.formule.pp_particip_perso.p0_particip_min.p0_forfait
      ]
      for param in list_param_al_loyer:
      inflate_parameters(
      param,
      inflator=inflateurs_parameters(
      year_contrefactuel - 1
      ).inflateur_aides_logement_loyer,
      base_year=year_contrefactuel - 2,
      last_year=year_contrefactuel - 1,
      start_instant=f"{year_contrefactuel - 1}-10-01",
      round_ndigits=0,
      ignore_missing_units=True,
      )
      add_metadata(
      param, {"inflator": "inflateurs/inflateur_aides_logement_loyer"}
      )
      # param_apl = parameters.prestations_sociales.aides_logement.allocations_logement
      # ### aides au logement paramètres loyers
      # list_param_al_loyer = [
      # param_apl.locatif.formule.l_plafonds_loyers.par_zone,
      # param_apl.locatif.formule.pp_particip_perso.r0_abattement.cas_general,
      # param_apl.locatif.formule.c_forfait_charges,
      # param_apl.foyer.al.formule.c_forfait_charges,
      # param_apl.accession.formule.c_forfait_charges,
      # param_apl.foyer.al.formule.l_plafonds_loyers,
      # param_apl.foyer.apl.formule.e_equiv_loyers_eligible,
      # param_apl.locatif.formule.pp_particip_perso.p0_particip_min.p0_forfait
      # ]
      # for param in list_param_al_loyer:
      # inflate_parameters(
      # param,
      # inflator=inflateurs_parameters(
      # year_contrefactuel - 1
      # ).inflateur_aides_logement_loyer,
      # base_year=year_contrefactuel - 2,
      # last_year=year_contrefactuel - 1,
      # start_instant=f"{year_contrefactuel - 1}-10-01",
      # round_ndigits=0,
      # ignore_missing_units=True,
      # )
      # add_metadata(
      # param, {"inflator": "inflateurs/inflateur_aides_logement_loyer"}
      # )
      ## TODO : rajouter une option pour l'inflation en octobre N-1 tant que décret pour octobre n'est pas sorti
      ......
      0% Loading or .
      You are about to add 0 people to the discussion. Proceed with caution.
      Please register or to comment