Skip to content

Commit

Permalink
Supprime un fichier en doublon suite rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
sandcha committed Feb 24, 2021
1 parent 152469c commit 707608e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 64 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from openfisca_france.model.base import Variable, Individu, MONTH, Famille
from openfisca_france.model.base import Variable, Individu, Famille, MONTH


class titre_sejour(Variable):
Expand Down Expand Up @@ -43,7 +43,7 @@ class beneficiaire_actp(Variable):

class mtp(Variable):
value_type = bool
label = "Bénéficiaire de la Majoration Tierce Personne"
label ="Bénéficiaire de la Majoration Tierce Personne"
entity = Individu
definition_period = MONTH
default_value = False
Expand All @@ -64,21 +64,22 @@ class beneficiaire_complement_aeeh(Variable):
definition_period = MONTH
default_value = False


class actp(Variable):
class mtp(Variable):
value_type = bool
label ="Bénéficiaire de l'Allocation compensatrice pour tierce personne"
label ="Bénéficiaire de la Majoration Tierce Personne"
entity = Individu
definition_period = MONTH
default_value = False


class station_debout_penible(Variable):
value_type = bool
label = "La station debout est pénible pour cet individu"
entity = Individu
definition_period = MONTH
default_value = False


class refugie(Variable):
value_type = bool
label = "La personne est réfugié"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def formula_2020_01(individu, period, parameters):
condition_ressources = individu('asi_aspa_base_ressources_individu', period) <= individu.famille('aspa', period)

condition_apa = individu('apa_domicile', period.last_month) <= 0
condition_aides_actp = not_(individu('actp', period))
condition_aides_actp = not_(individu('beneficiaire_actp', period))
condition_aides_mtp = not_(individu('mtp', period))
condition_aide_menagere_caisse_retraite = not_(individu('aide_menagere_fournie_caisse_retraite', period))
conditions_non_cumul = condition_apa * condition_aide_menagere_caisse_retraite * condition_aides_actp * condition_aides_mtp
Expand Down Expand Up @@ -92,7 +92,7 @@ def formula_2020_01(individu, period, parameters):
(taux_incapacite >= repas_foyer_parameters.taux_incapacite_minimum_restriction_acces_emploi) * restriction_substantielle_durable)))
condition_ressources = individu_resources <= individu.famille('aspa', period)

condition_aides_actp = not_(individu('actp', period))
condition_aides_actp = not_(individu('beneficiaire_actp', period))
condition_aides_mtp = not_(individu('mtp', period))
condition_aide_menagere_caisse_retraite = not_(individu('aide_menagere_fournie_caisse_retraite', period))
conditions_non_cumul = condition_aide_menagere_caisse_retraite * condition_aides_actp * condition_aides_mtp
Expand Down
28 changes: 14 additions & 14 deletions tests/departements/eure_et_loir/repas_foyer_personne_agee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
age: 66
inapte_travail: False
nationalite: FR
actp: False
beneficiaire_actp: False
mtp: False
familles:
_:
Expand All @@ -35,7 +35,7 @@
age: 61
inapte_travail: True
nationalite: FR
actp: False
beneficiaire_actp: False
mtp: False
familles:
_:
Expand All @@ -60,7 +60,7 @@
age: 66
inapte_travail: False
nationalite: FR
actp: False
beneficiaire_actp: False
mtp: False
familles:
_:
Expand All @@ -85,7 +85,7 @@
age: 66
inapte_travail: False
nationalite: IT
actp: False
beneficiaire_actp: False
mtp: False
familles:
_:
Expand All @@ -111,7 +111,7 @@
inapte_travail: False
nationalite: LYD
refugie: True
actp: False
beneficiaire_actp: False
mtp: False
familles:
_:
Expand All @@ -136,7 +136,7 @@
age: 66
inapte_travail: False
apatride: True
actp: False
beneficiaire_actp: False
mtp: False
familles:
_:
Expand All @@ -161,7 +161,7 @@
age: 62
inapte_travail: False
nationalite: FR
actp: False
beneficiaire_actp: False
mtp: False
familles:
_:
Expand All @@ -186,7 +186,7 @@
age: 59
inapte_travail: True
nationalite: FR
actp: False
beneficiaire_actp: False
mtp: False
familles:
_:
Expand All @@ -211,7 +211,7 @@
age: 66
inapte_travail: False
nationalite: FR
actp: False
beneficiaire_actp: False
mtp: False
familles:
_:
Expand Down Expand Up @@ -239,7 +239,7 @@
nationalite: LL
refugie: False
apatride: False
actp: False
beneficiaire_actp: False
mtp: False
familles:
_:
Expand All @@ -264,7 +264,7 @@
age: 66
inapte_travail: False
nationalite: FR
actp: False
beneficiaire_actp: False
mtp: False
familles:
_:
Expand All @@ -289,7 +289,7 @@
age: 66
inapte_travail: False
nationalite: FR
actp: True
beneficiaire_actp: True
mtp: False
familles:
_:
Expand All @@ -314,7 +314,7 @@
age: 66
inapte_travail: False
nationalite: FR
actp: False
beneficiaire_actp: False
mtp: True
familles:
_:
Expand All @@ -339,7 +339,7 @@
age: 66
inapte_travail: False
nationalite: FR
actp: False
beneficiaire_actp: False
mtp: False
apa_domicile:
2020-09: 100
Expand Down

0 comments on commit 707608e

Please sign in to comment.