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

Fix Landais-Piketty-Saez reform #927

Merged
merged 5 commits into from
Mar 20, 2018
Merged

Conversation

benjello
Copy link
Member

@benjello benjello commented Mar 9, 2018

Contexte: faire fonctionner ce notebook

  • Correction d'un crash.
  • Zones impactées : openfisca_france/reforms/landais_piketty_saez.py.
  • Détails :
    • La réforme ne fonctionnait plus à la suite d'un reformatage intempestif.

Ces changements :

  • Corrigent ou améliorent un calcul déjà existant.

@benjello benjello requested review from fpagnoux and sandcha March 9, 2018 18:17
CHANGELOG.md Outdated
* Correction d'un crash.
* Zones impactées : openfisca_france/reforms/landais_piketty_saez.py.
* Détails :
- La réforme ne fonctionnait plus à la suite d'un changement de syntaxe intempestif.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quelle était l'erreur obtenue ? Non reproduite avec tests/reforms/test_landais_piketty_saez.py.

Mettre à jour le test pour qu'il détecte l'erreur ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changement de syntaxe ou renommage de variable qui était à propager ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il y a eu un changement de syntaxe et la persone qui l'a fait a fait une erreur sur le nom d'une variable

prestations_sociales_i = menage.members.famille('prestations_sociales', period) * individu.has_role(Famille.DEMANDEUR)
prestations_sociales = menage.sum(prestations_sociales)
prestations_sociales_i = menage.members.famille('prestations_sociales', period) * menage.members.has_role(Famille.DEMANDEUR)
prestations_sociales = menage.sum(prestations_sociales_i)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@benjello
Copy link
Member Author

benjello commented Mar 20, 2018

@sandcha ; j'ai rajouté un test et j'ai rebasé sur master mais j'obtiens une PR bizarre ...
cc @fpagnoux @Anna-Livia

@benjello benjello force-pushed the fix-landais-piketty-saez-reform branch from ad24742 to 30493b9 Compare March 20, 2018 10:59
@benjello
Copy link
Member Author

@sandcha: tout est rentré dans l'ordre grâce à @Anna-Livia !

@benjello
Copy link
Member Author

Je retire @sandcha qui est en vacances pour demander ton approbation @Anna-Livia si tu n'y vois pas d'inconvénients

@benjello benjello requested review from Anna-Livia and removed request for fpagnoux March 20, 2018 11:06
Copy link
Contributor

@sandcha sandcha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you like 🙂 C'est bon pour moi en tout cas ; il n'y a que le numéro de version qui devrait être supérieur au 20.6.0 de master.

@benjello
Copy link
Member Author

Merci @sandcha .
@Anna-Livia ne t'embête pas à reviewer, je merge dès que les tests sont finis.

@benjello benjello merged commit f9ebbe1 into master Mar 20, 2018
@benjello benjello deleted the fix-landais-piketty-saez-reform branch March 20, 2018 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants