Skip to content

Commit

Permalink
Merge pull request #244 from openfisca/correction_parameters_csg_remp…
Browse files Browse the repository at this point in the history
…lacement

Correction parameters (OF france) create_taux_csg_remplacement
  • Loading branch information
Lolajossipp authored Jan 12, 2024
2 parents d158593 + 89dd432 commit 6f7af1a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 3.0.3 [#244](https://github.com/openfisca/openfisca-france-data/pull/244)
* Technical changes:
- Correction dees liens des paramètres dans la fonction create_taux_csg_remplacement

### 3.0.2 [#243](https://github.com/openfisca/openfisca-france-data/pull/243)
* Technical changes:
- Ajoute la possibilité d'utiliser un tax and benefit system plus en aval dans les fonctions de utils.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ def create_taux_csg_remplacement(individus, period, tax_benefit_system, sigma =

def compute_taux_csg_remplacement(rfr, nbptr):
parameters = tax_benefit_system.get_parameters_at_instant(period.start)
seuils = parameters.prelevements_sociaux.contributions_sociales.csg.remplacement.pensions_de_retraite_et_d_invalidite
seuil_exoneration = seuils.seuil_de_rfr_1 + (nbptr - 1) * seuils.demi_part_suppl
seuil_reduction = seuils.seuil_de_rfr_2 + (nbptr - 1) * seuils.demi_part_suppl
seuils = parameters.prelevements_sociaux.contributions_sociales.csg.remplacement.seuils
seuil_exoneration = seuils.seuil_de_rfr_1 + (nbptr - 1) * seuils.seuil_rfr1.demi_part_suppl_rfr1
seuil_reduction = seuils.seuil_de_rfr_2 + (nbptr - 1) * seuils.seuil_rfr2.demi_part_suppl_rfr2
taux_csg_remplacement = 0.0 * rfr
if period.start.year >= 2019:
seuil_taux_intermediaire = seuils.seuil_rfr3 + (nbptr - 1) * seuils.demi_part_suppl_rfr3
seuil_taux_intermediaire = seuils.seuil_rfr3 + (nbptr - 1) * seuils.seuil_rfr3.demi_part_suppl_rfr3
taux_csg_remplacement = np.where(
rfr <= seuil_exoneration,
1,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name = "OpenFisca-France-Data",
version = "3.0.2",
version = "3.0.3",
description = "OpenFisca-France-Data module to work with French survey data",
long_description = long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 6f7af1a

Please sign in to comment.