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 unites_consommations #954

Merged
merged 4 commits into from
Mar 30, 2018
Merged

Fix unites_consommations #954

merged 4 commits into from
Mar 30, 2018

Conversation

benjello
Copy link
Member

@benjello benjello commented Mar 29, 2018

  • Correction d'un bug
  • Zones impactées : revenus/mesures
  • Détails :
    • Corrige la formule des unites_consommation

Ces changements corrigent ou améliorent un calcul déjà existant.

Fixes #953

@Anna-Livia
Copy link
Contributor

Anna-Livia commented Mar 30, 2018

Je pense qu'il serait intéressant d'ajouter une référence pour le calcul et un ou deux tests :)
(Cf mes remarques sur #953)


return 0.5 + tot_uc_indiv
age_individu = menage.members('age', period.first_month)
uc_individu = 0.5 * (age_individu >= 14) + 0.3 * (age_individu < 14)
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

@Anna-Livia: la référence y est. Et j'ai rajouté des tests.

@benjello benjello merged commit 76b6e75 into master Mar 30, 2018
@benjello benjello deleted the fix-unites-consommations branch March 30, 2018 12:54
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.

3 participants