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

Corrige double comparaison incompatible avec Numpy #1365

Merged
merged 2 commits into from
Jul 23, 2019

Conversation

nico5655
Copy link
Contributor

@nico5655 nico5655 commented Jul 19, 2019

Fix #1363
Fix #1359

  • Correction d'un crash
  • Périodes concernées : toutes
  • Zones impactées : openfisca_france/model/prestations/autonomie.py
  • Détails :
    • Corrige erreur sur 'apa_domicile', 'apa_etablissement' et 'apa_urgence_domicile'
    • Il s'agit d'une double comparaison, incompatible avec numpy

Ces changements :

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

Quelques conseils à prendre en compte :

@nico5655 nico5655 mentioned this pull request Jul 19, 2019
@nico5655 nico5655 changed the title Update autonomie.py Corrected formula typos Jul 19, 2019
Copy link
Member

@benjello benjello left a comment

Choose a reason for hiding this comment

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

Merci @nico5655.
Quelques suggestions de correction de typo et c'est bon pour moi

@benjello benjello requested a review from guillett July 19, 2019 13:21
Copy link
Member

@bonjourmauko bonjourmauko left a comment

Choose a reason for hiding this comment

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

Merci beaucoup @nico5655 !

Pour éviter ces type de bugs, c'est toujours une bonne idée d'ajouter un test qui reproduit l'erreur. Dans ce cas précis, il n'y a probablement pas de tests qui s'assurent du bon fonctionnement des formules avec de typos.

Pourrais-tu en ajouter ?

@bonjourmauko
Copy link
Member

On regardant de plus près, je vois qu'il y a déjà de tests ici, mais qu'on n'a pas intercepté l'erreur...

@bonjourmauko
Copy link
Member

bonjourmauko commented Jul 20, 2019

C'est donc le problème des tests avec un seul scénario qu'on a déjà vu avant (PAJE...). Je rebase et j'accepte, on devra trouver une solution pérenne à ce problème probablement sur core.

@bonjourmauko bonjourmauko changed the title Corrected formula typos Corrige double comparaison incompatible avec Numpy Jul 20, 2019
@bonjourmauko
Copy link
Member

@benjello C'est bon pour moi.

@benjello
Copy link
Member

@maukoquiroga je te laisse merger

nico5655 and others added 2 commits July 23, 2019 16:09
Co-Authored-By: Mahdi Ben Jelloul <mahdi.benjelloul@gmail.com>
@bonjourmauko bonjourmauko self-assigned this Jul 23, 2019
@bonjourmauko bonjourmauko merged commit aab1f13 into openfisca:master Jul 23, 2019
@nico5655 nico5655 deleted the patch-1 branch July 23, 2019 15:33
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.

Erreur sur formule « autonomie » Type Error APA
3 participants