OpenFisca-France-Local 4.6.0__py3-none-any.whl → 4.6.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-Local might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: OpenFisca-France-Local
3
- Version: 4.6.0
3
+ Version: 4.6.1
4
4
  Summary: Extension OpenFisca pour nos partenariats avec les collectivités territoriales
5
5
  Home-page: https://github.com/openfisca/openfisca-france
6
6
  Author: OpenFisca Team
@@ -1,4 +1,4 @@
1
- OpenFisca_France_Local-4.6.0.data/scripts/openfisca_local_test,sha256=M55UQ5tskwZpJVLXGqlIcVs1nVZ2pBr_-R9jh-z2tbw,128
1
+ OpenFisca_France_Local-4.6.1.data/scripts/openfisca_local_test,sha256=M55UQ5tskwZpJVLXGqlIcVs1nVZ2pBr_-R9jh-z2tbw,128
2
2
  openfisca_france_local/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  openfisca_france_local/aides_jeunes_reform.py,sha256=M3F9wrrIIxpH_S19kh5aofl4jATAPW_RcpVK2ypd5yg,11671
4
4
  openfisca_france_local/epci_test_factory.py,sha256=llV16D-sNcKa6EIKsfej_4hoPmf4wQ9iHwyT5NGzQtM,1200
@@ -41,7 +41,7 @@ openfisca_france_local/departements/nord/activ_emploi.py,sha256=juzjujhnlvWgiTkT
41
41
  openfisca_france_local/departements/seine_saint_denis/cheque_reussite.py,sha256=c9Zx2N11W5I-X8NzjVP1DErB2GS2hzEr6z4YqBJwUgQ,1968
42
42
  openfisca_france_local/departements/seine_saint_denis/eligibilite.py,sha256=hMJEVwTw4dsrtNuru74v4s-jV9J3HhCdqGs-_gT6up0,456
43
43
  openfisca_france_local/departements/vendee/bourses_jeunes_benevoles.py,sha256=Iy-iWmwmrVRHzH2tb0x-AGHcpKCIHFF-e2J_RAY-V14,712
44
- openfisca_france_local/metropoles/bordeaux/aide_tarification_solidaire_transport.py,sha256=pFl7cpQJIUtAUaw2MJAX-N8_OUwFHncNMLipBmsz6hw,839
44
+ openfisca_france_local/metropoles/bordeaux/aide_tarification_solidaire_transport.py,sha256=Y2br_mbqVEVxu8uvF56HdOS4aLRmjUEmOsQq_Lh7y0c,1395
45
45
  openfisca_france_local/metropoles/brest/communes.py,sha256=HDYmZxAwbgaDcZwUqR0om7YVxqwhXKGrFGScvx1EOxI,222
46
46
  openfisca_france_local/metropoles/brest/quotient_familial_caf.py,sha256=sSmxT37KgGkdfA0LZioY3V0ddjOU6lCHoLEAKEKL_ms,1532
47
47
  openfisca_france_local/metropoles/brest/transport.py,sha256=f8UA8NF9l5JMm2Wq1eK7pZNN4cjrbgf2s-p8OLIDHdg,1605
@@ -100,8 +100,8 @@ openfisca_france_local/regions/occitanie/carte_transport_scolaire.py,sha256=VgWJ
100
100
  openfisca_france_local/regions/occitanie/msa_midi_pyrenees_sud/aide_permis.py,sha256=JfXYR1S3P0Wu5IPwFwTc8QwTU51ambex9-cf425eCAA,1515
101
101
  openfisca_france_local/regions/pays_de_la_loire/epass_jeunes_culture_sport.py,sha256=jLDoKJkOGz88Zi5qWWNkMBGIbYF5E7TsfI98H1WXOA4,1373
102
102
  openfisca_france_local/scripts/openfisca_local_test,sha256=M55UQ5tskwZpJVLXGqlIcVs1nVZ2pBr_-R9jh-z2tbw,128
103
- OpenFisca_France_Local-4.6.0.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
104
- OpenFisca_France_Local-4.6.0.dist-info/METADATA,sha256=S_vcS4BF4HIr79SpWhR5pFQkhT_tS7p7QyfTEotUjx4,1070
105
- OpenFisca_France_Local-4.6.0.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
106
- OpenFisca_France_Local-4.6.0.dist-info/top_level.txt,sha256=chE8r9UyoDNV9FnqxzeRSolTkSOB1kf5N8uwm2U1msM,23
107
- OpenFisca_France_Local-4.6.0.dist-info/RECORD,,
103
+ OpenFisca_France_Local-4.6.1.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
104
+ OpenFisca_France_Local-4.6.1.dist-info/METADATA,sha256=KyKEhMolQ8OQHlRGEmZJFed4e-6ltzOR3Llo0kYVhcs,1070
105
+ OpenFisca_France_Local-4.6.1.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
106
+ OpenFisca_France_Local-4.6.1.dist-info/top_level.txt,sha256=chE8r9UyoDNV9FnqxzeRSolTkSOB1kf5N8uwm2U1msM,23
107
+ OpenFisca_France_Local-4.6.1.dist-info/RECORD,,
@@ -1,11 +1,21 @@
1
- from openfisca_france.model.base import Variable, MONTH, Individu
1
+ from openfisca_france.model.base import Variable, MONTH, Individu, Menage
2
+
3
+
4
+ class bordeaux_metropole_aide_tarification_solidaire_transport_eligibilite_geographique(Variable):
5
+ value_type = bool
6
+ entity = Menage
7
+ definition_period = MONTH
8
+ label = "Éligibilité géographique à l'aide tarification solidaire de la métropole de Bordeaux"
9
+
10
+ def formula(menage, period):
11
+ return menage("menage_dans_epci_siren_243300316", period)
2
12
 
3
13
 
4
14
  class bordeaux_metropole_aide_tarification_solidaire_transport(Variable):
5
15
  entity = Individu
6
16
  definition_period = MONTH
7
17
  value_type = float
8
- label = "Éligibilité à l'aide tarification solidaire le la métropole de Bordeaux"
18
+ label = "Éligibilité à l'aide tarification solidaire de la métropole de Bordeaux"
9
19
  reference = [
10
20
  'https://tarificationsolidaire.bordeaux-metropole.fr/Accueil.aspx']
11
21
 
@@ -16,5 +26,6 @@ class bordeaux_metropole_aide_tarification_solidaire_transport(Variable):
16
26
  rfr = individu.foyer_fiscal('rfr', period.n_2)
17
27
  nbptr = individu.foyer_fiscal('nbptr', period.n_2)
18
28
  quotient_familial = rfr / 12 / nbptr
29
+ eligibilite_geographique = individu.menage('bordeaux_metropole_aide_tarification_solidaire_transport_eligibilite_geographique', period)
19
30
 
20
- return benefit_parameters['tranches_taux_de_reduction_par_quotient_familial'].calc(quotient_familial)
31
+ return eligibilite_geographique * benefit_parameters['tranches_taux_de_reduction_par_quotient_familial'].calc(quotient_familial)