Skip to content

Commit

Permalink
Isole l'expérimentation pour le rsa
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainipp committed Oct 1, 2024
1 parent 14059fc commit 20ae6e5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions openfisca_france/model/prestations/minima_sociaux/rsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ class rsa_base_ressources_individu(Variable):
reference = 'https://www.legifrance.gouv.fr/affichCodeArticle.do?cidTexte=LEGITEXT000006073189&idArticle=LEGIARTI000036393176&dateTexte=&categorieLien=id'

def formula_2024_10(individu, period, parameters):
return rsa_base_ressources_individu_base_formula(individu= individu, period= period, three_months_of_reference= last_3_months_offset_minus_1(period), parameters=parameters)
departement_experimentation_rsa = famille('departement_experimentation_rsa', period)
three_months_of_reference = where(departement_experimentation_rsa, last_3_months_offset_minus_1, period.last_3_months)
return rsa_base_ressources_individu_base_formula(individu= individu, period= period, three_months_of_reference= three_months_of_reference, parameters=parameters)

def formula_2009_06_01(individu, period, parameters):
return rsa_base_ressources_individu_base_formula(individu= individu, period= period, three_months_of_reference= period.last_3_months, parameters=parameters)
Expand Down Expand Up @@ -146,7 +148,8 @@ class rsa_base_ressources_minima_sociaux(Variable):
set_input = set_input_divide_by_period

def formula_2024_10(famille, period):
three_months_of_reference = last_3_months_offset_minus_1(period)
departement_experimentation_rsa = famille('departement_experimentation_rsa', period)
three_months_of_reference = where(departement_experimentation_rsa, last_3_months_offset_minus_1, period.last_3_months)
return calcul_minima_sociaux(famille= famille, period= period, three_months_of_reference=three_months_of_reference)

def formula(famille, period):
Expand Down Expand Up @@ -478,8 +481,9 @@ class rsa_revenu_activite_individu(Variable):
set_input = set_input_divide_by_period

def formula_2024_10(individu, period):
period_m2_m4 = last_3_months_offset_minus_1(period)
return rsa_revenu_activite_individu_base_formula(individu= individu, period=period, three_months_of_reference=period_m2_m4)
departement_experimentation_rsa = famille('departement_experimentation_rsa', period)
three_months_of_reference = where(departement_experimentation_rsa, last_3_months_offset_minus_1, period.last_3_months)
return rsa_revenu_activite_individu_base_formula(individu= individu, period= period, three_months_of_reference= three_months_of_reference)

def formula_2009_06(individu, period):
last_3_months = period.last_3_months
Expand Down

0 comments on commit 20ae6e5

Please sign in to comment.