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

Ajout de la compatibilité numpy 1.25.0 #2124

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
16 changes: 14 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# Changelog
# Changelog

### 149.1.2 [#2124](https://github.com/openfisca/openfisca-france/pull/2124)

* Changement mineur.
* Périodes concernées : toutes.
* Zones impactées :
- `openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/taxes_salaires_main_oeuvre.py`
- `openfisca_france/model/prestations/minima_sociaux/asi_aspa.py`
- `openfisca_france/model/prestations/cheque_energie.py`
- `openfisca_france/model/prestations/locapass.py`
Comment on lines +8 to +11
Copy link
Contributor

@sandcha sandcha Jun 19, 2023

Choose a reason for hiding this comment

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

Suggested change
- `openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/taxes_salaires_main_oeuvre.py`
- `openfisca_france/model/prestations/minima_sociaux/asi_aspa.py`
- `openfisca_france/model/prestations/cheque_energie.py`
- `openfisca_france/model/prestations/locapass.py`
- `model/prelevements_obligatoires/prelevements_sociaux/taxes_salaires_main_oeuvre.py`
- `model/prestations/minima_sociaux/asi_aspa.py`
- `model/prestations/cheque_energie.py`
- `model/prestations/locapass.py`

* Détails :
- Enlève l'opérateur unaire "+" devant un booléen, car ce n'est plus supporté par Numpy 1.25

### 149.1.1 [#2123](https://github.com/openfisca/openfisca-france/pull/2123)

Expand All @@ -8,7 +20,7 @@
* Détails : Implémente des unités plus précises du SMIC


### 149.1.0 [#2118](https://github.com/openfisca/openfisca-france/pull/2118)
## 149.1.0 [#2118](https://github.com/openfisca/openfisca-france/pull/2118)
Copy link
Contributor

Choose a reason for hiding this comment

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

🙏


* Amélioration technique.
* Périodes concernées : à partir du 01/04/2014
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def formula_2015_01_01(individu, period, parameters):
variable_name = 'financement_organisations_syndicales',
)
contrat_de_droit_prive = (
+ (categorie_salarie == TypesCategorieSalarie.prive_non_cadre)
(categorie_salarie == TypesCategorieSalarie.prive_non_cadre)
+ (categorie_salarie == TypesCategorieSalarie.prive_cadre)
+ (categorie_salarie == TypesCategorieSalarie.public_non_titulaire)
)
Expand Down
2 changes: 1 addition & 1 deletion openfisca_france/model/prestations/cheque_energie.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def formula_2017(menage, period, parameters):

return (
not_(residence_saint_martin) * (
+ (statut_occupation_logement == TypesStatutOccupationLogement.primo_accedant)
(statut_occupation_logement == TypesStatutOccupationLogement.primo_accedant)
+ (statut_occupation_logement == TypesStatutOccupationLogement.proprietaire)
+ (statut_occupation_logement == TypesStatutOccupationLogement.locataire_hlm)
+ (statut_occupation_logement == TypesStatutOccupationLogement.locataire_vide)
Expand Down
2 changes: 1 addition & 1 deletion openfisca_france/model/prestations/locapass.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class locapass_eligibilite_logement(Variable):
def formula(menage, period):
statut_occupation = menage('statut_occupation_logement', period)
return (
+ (statut_occupation == TypesStatutOccupationLogement.locataire_hlm)
(statut_occupation == TypesStatutOccupationLogement.locataire_hlm)
+ (statut_occupation == TypesStatutOccupationLogement.locataire_vide)
+ (statut_occupation == TypesStatutOccupationLogement.locataire_meuble)
+ (statut_occupation == TypesStatutOccupationLogement.locataire_foyer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def formula_2020_04_01(individu, period, parameters):
montant_servi_asi = max_(plafond_ressources - base_ressources, 0)

return montant_servi_asi * (
+ individu.has_role(Famille.DEMANDEUR) * demandeur_eligible_asi * (elig1 + elig2 / 2 + elig3 / 2)
individu.has_role(Famille.DEMANDEUR) * demandeur_eligible_asi * (elig1 + elig2 / 2 + elig3 / 2)
+ individu.has_role(Famille.CONJOINT) * conjoint_eligible_asi * (elig1 + elig2 / 2 + elig3 / 2)
)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name = 'OpenFisca-France',
version = '149.1.1',
version = '149.1.2',
author = 'OpenFisca Team',
author_email = '[email protected]',
classifiers = [
Expand Down