Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correction parameters (OF france) create_taux_csg_remplacement #244

Merged
merged 2 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading