OpenFisca-France 169.1.0__py3-none-any.whl → 169.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of OpenFisca-France might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: OpenFisca-France
3
- Version: 169.1.0
3
+ Version: 169.1.1
4
4
  Summary: OpenFisca Rules as Code model for France.
5
5
  Author-email: OpenFisca Team <contact@openfisca.fr>
6
6
  Project-URL: Homepage, https://github.com/openfisca/openfisca-france
@@ -116,7 +116,7 @@ openfisca_france/model/prestations/minima_sociaux/aefa.py,sha256=mXOBJgXTl_iA6aa
116
116
  openfisca_france/model/prestations/minima_sociaux/anciens_ms.py,sha256=PAXVlfd8PNXR_cUyf31BUsVJ8-KTTP3Tx6CD7rRLBEw,10878
117
117
  openfisca_france/model/prestations/minima_sociaux/asi_aspa.py,sha256=abhKjQrYylUbi5Q78JL5yx0WoVtjejVWfi13FoHxnvI,20771
118
118
  openfisca_france/model/prestations/minima_sociaux/ass.py,sha256=lFizKYXWihH7L5jEQpHvaK-61DmxlcX0r4QoWuuG5YU,11221
119
- openfisca_france/model/prestations/minima_sociaux/ppa.py,sha256=_mfMFmqXTzJFL28StwRPPAqhJghG3LvVrFUOiUOBMJ4,25384
119
+ openfisca_france/model/prestations/minima_sociaux/ppa.py,sha256=NFK5RuXb4OO34MCAPCdPm_z1tNYkV9JZ8IAA-UMFgH0,25511
120
120
  openfisca_france/model/prestations/minima_sociaux/rsa.py,sha256=Zm4PtXMrJKzoT_lLctdL049Grv4hQd0PR07Q7ubZeRk,48162
121
121
  openfisca_france/model/prestations/minima_sociaux/cs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
122
122
  openfisca_france/model/prestations/minima_sociaux/cs/acs.py,sha256=nwihxwsjKAmgPBW3jB2GcCSOxWJuQKgNhTj_gLZ-xAw,2435
@@ -4017,8 +4017,8 @@ openfisca_france/scripts/performance/measure_spiral_performances.py,sha256=cQIxE
4017
4017
  openfisca_france/scripts/performance/measure_tests_performance.py,sha256=HYgSJy-OMZay2AZt6ztntgdUbW_RL2xMr-iHcK-zoVY,1869
4018
4018
  openfisca_france/situation_examples/__init__.py,sha256=BTRmrqk9lsjfhtPXsYcsWqXFEYyFpgLcxNs6oJsy8zk,262
4019
4019
  openfisca_france/situation_examples/couple.json,sha256=Ot1x4wl3IS-2-10X3V7ZUokkOMXi96s-xK7A0gNvRF4,862
4020
- OpenFisca_France-169.1.0.dist-info/LICENSE.AGPL.txt,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
4021
- OpenFisca_France-169.1.0.dist-info/METADATA,sha256=HObKU0MgUiU5Gqg2lVkg82b-gUqsOaCxj2fH1S0NwMU,20862
4022
- OpenFisca_France-169.1.0.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
4023
- OpenFisca_France-169.1.0.dist-info/top_level.txt,sha256=1LbD6QJWehKGIcjtaJ45tbQOSDiFEXOlIdgWRI_jaHU,17
4024
- OpenFisca_France-169.1.0.dist-info/RECORD,,
4020
+ OpenFisca_France-169.1.1.dist-info/LICENSE.AGPL.txt,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
4021
+ OpenFisca_France-169.1.1.dist-info/METADATA,sha256=k-Fwo4xw8iDUZmAY-EsirDREQ7RXRT1NKw3ezKdWIHs,20862
4022
+ OpenFisca_France-169.1.1.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
4023
+ OpenFisca_France-169.1.1.dist-info/top_level.txt,sha256=1LbD6QJWehKGIcjtaJ45tbQOSDiFEXOlIdgWRI_jaHU,17
4024
+ OpenFisca_France-169.1.1.dist-info/RECORD,,
@@ -19,10 +19,10 @@ class ppa_eligibilite(Variable):
19
19
  return condition_age
20
20
 
21
21
 
22
- class ppa_plancher_revenu_activite_etudiant(Variable):
22
+ class ppa_plancher_revenu_activite_apprenant(Variable):
23
23
  value_type = float
24
24
  entity = Individu
25
- label = "Plancher des revenus d'activité pour être éligible à la PPA en tant qu'étudiant"
25
+ label = "Plancher des revenus d'activité pour être éligible à la PPA en tant qu'apprenant (étudiant/stagiaire ou apprenti)"
26
26
  definition_period = MONTH
27
27
  set_input = set_input_divide_by_period
28
28
 
@@ -36,7 +36,7 @@ class ppa_plancher_revenu_activite_etudiant(Variable):
36
36
  )
37
37
 
38
38
 
39
- class ppa_eligibilite_etudiants(Variable):
39
+ class ppa_eligibilite_apprenants(Variable):
40
40
  value_type = bool
41
41
  entity = Famille
42
42
  label = 'Eligibilité à la PPA (condition sur tout le trimestre)'
@@ -52,8 +52,8 @@ class ppa_eligibilite_etudiants(Variable):
52
52
  def formula(famille, period, parameters):
53
53
  ppa_majoree_eligibilite = famille('rsa_majore_eligibilite', period)
54
54
 
55
- etudiant_i = famille.members('etudiant', period)
56
- plancher_etudiant = famille.members('ppa_plancher_revenu_activite_etudiant', period)
55
+ apprenant_i = famille.members('etudiant', period) + famille.members('stagiaire', period) + famille.members('apprenti', period)
56
+ plancher_apprenant = famille.members('ppa_plancher_revenu_activite_apprenant', period)
57
57
 
58
58
  def condition_ressource(period2, plancher):
59
59
  revenu_activite = famille.members('ppa_revenu_activite_individu', period2)
@@ -63,21 +63,21 @@ class ppa_eligibilite_etudiants(Variable):
63
63
  m_2 = period.offset(-2, 'month')
64
64
  m_3 = period.offset(-3, 'month')
65
65
 
66
- condition_etudiant_i = (
67
- condition_ressource(m_1, plancher_etudiant)
68
- * condition_ressource(m_2, plancher_etudiant)
69
- * condition_ressource(m_3, plancher_etudiant)
66
+ condition_apprenant_i = (
67
+ condition_ressource(m_1, plancher_apprenant)
68
+ * condition_ressource(m_2, plancher_apprenant)
69
+ * condition_ressource(m_3, plancher_apprenant)
70
70
  )
71
71
 
72
- condition_non_etudiant_i = (
73
- not_(etudiant_i) * (
72
+ condition_non_apprenant_i = (
73
+ not_(apprenant_i) * (
74
74
  condition_ressource(m_1, 0)
75
75
  + condition_ressource(m_2, 0)
76
76
  + condition_ressource(m_3, 0)
77
77
  )
78
78
  )
79
79
 
80
- condition_famille = famille.any(condition_non_etudiant_i + condition_etudiant_i, role = Famille.PARENT)
80
+ condition_famille = famille.any(condition_non_apprenant_i + condition_apprenant_i, role = Famille.PARENT)
81
81
  return ppa_majoree_eligibilite + condition_famille
82
82
 
83
83
 
@@ -585,8 +585,8 @@ def ppa_base_formula(famille, parameters, period, three_months_of_reference):
585
585
  seuil_non_versement = parameters(period).prestations_sociales.solidarite_insertion.minima_sociaux.ppa.pa_m.montant_minimum_verse
586
586
  # éligibilité étudiants
587
587
 
588
- ppa_eligibilite_etudiants = famille('ppa_eligibilite_etudiants', period)
588
+ ppa_eligibilite_apprenants = famille('ppa_eligibilite_apprenants', period)
589
589
  ppa = famille('ppa_fictive', three_months_of_reference, options = [ADD]) / 3
590
- ppa = ppa * ppa_eligibilite_etudiants * (ppa >= seuil_non_versement)
590
+ ppa = ppa * ppa_eligibilite_apprenants * (ppa >= seuil_non_versement)
591
591
 
592
592
  return ppa