policyengine-us 1.420.0__py3-none-any.whl → 1.421.0__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 policyengine-us might be problematic. Click here for more details.

@@ -0,0 +1,10 @@
1
+ description: The Texas Department of Agriculture limits the Commodity Supplemental Food Program to individuals with household income below this percentage of the federal poverty guidelines.
2
+ values:
3
+ 2024-01-01: 1.3
4
+ metadata:
5
+ unit: /1
6
+ period: year
7
+ label: Texas Commodity Supplemental Food Program FPG limit
8
+ reference:
9
+ - title: Texas Department of Agriculture Commodity Supplemental Food Program Income Eligibility Guidelines for the Elderly
10
+ href: https://squaremeals.org/Portals/8/FND%20Forms/Program%20Forms/H1666%202025%20Income%20Eligibility%20Guidelines%20for%20the%20Elderly_.pdf?ver=joHDl3vcgPiW3mdgaMM7vA%3d%3d
@@ -0,0 +1,15 @@
1
+ - name: Below the limit
2
+ period: 2025
3
+ input:
4
+ state_code: TX
5
+ school_meal_fpg_ratio: 1.3
6
+ output:
7
+ tx_dta_csfp_income_eligible: true
8
+
9
+ - name: Above the limit
10
+ period: 2025
11
+ input:
12
+ state_code: TX
13
+ school_meal_fpg_ratio: 1.31
14
+ output:
15
+ tx_dta_csfp_income_eligible: false
@@ -0,0 +1,171 @@
1
+ - name: Person under 60 is not eligible regardless of income
2
+ period: 2024
3
+ input:
4
+ people:
5
+ person:
6
+ age: 59
7
+ spouse:
8
+ age: 62
9
+ spm_units:
10
+ spm_unit:
11
+ members: [person, spouse]
12
+ school_meal_fpg_ratio: 1.0 # Below the 130% limit
13
+ output:
14
+ commodity_supplemental_food_program_eligible: [false, true]
15
+
16
+ - name: Person exactly 60 is eligible with low income
17
+ period: 2024
18
+ input:
19
+ people:
20
+ person:
21
+ age: 60
22
+ spm_units:
23
+ spm_unit:
24
+ members: [person]
25
+ school_meal_fpg_ratio: 1.2 # Below the 130% limit
26
+ output:
27
+ commodity_supplemental_food_program_eligible: true
28
+
29
+ - name: Elderly person eligible with income at exactly 130% FPG
30
+ period: 2024
31
+ input:
32
+ people:
33
+ person:
34
+ age: 65
35
+ spm_units:
36
+ spm_unit:
37
+ members: [person]
38
+ school_meal_fpg_ratio: 1.3 # Exactly at the limit
39
+ output:
40
+ commodity_supplemental_food_program_eligible: true
41
+
42
+ - name: Elderly person not eligible with income above 130% FPG
43
+ period: 2024
44
+ input:
45
+ people:
46
+ person:
47
+ age: 70
48
+ spm_units:
49
+ spm_unit:
50
+ members: [person]
51
+ school_meal_fpg_ratio: 1.31 # Just above the limit
52
+ output:
53
+ commodity_supplemental_food_program_eligible: false
54
+
55
+ - name: Multiple household members with different eligibility
56
+ period: 2024
57
+ input:
58
+ people:
59
+ child:
60
+ age: 10
61
+ adult:
62
+ age: 45
63
+ senior1:
64
+ age: 60
65
+ senior2:
66
+ age: 75
67
+ spm_units:
68
+ spm_unit:
69
+ members: [child, adult, senior1, senior2]
70
+ school_meal_fpg_ratio: 1.2 # Below the 130% limit
71
+ output:
72
+ commodity_supplemental_food_program_eligible: [false, false, true, true]
73
+
74
+ - name: 2025 period with higher FPG limit of 150%
75
+ period: 2025
76
+ input:
77
+ people:
78
+ person:
79
+ age: 65
80
+ spm_units:
81
+ spm_unit:
82
+ members: [person]
83
+ school_meal_fpg_ratio: 1.45 # Between 130% and 150%
84
+ output:
85
+ commodity_supplemental_food_program_eligible: true
86
+
87
+ - name: 2025 period - not eligible above 150% FPG
88
+ period: 2025
89
+ input:
90
+ people:
91
+ person:
92
+ age: 65
93
+ spm_units:
94
+ spm_unit:
95
+ members: [person]
96
+ school_meal_fpg_ratio: 1.51 # Just above the 150% limit
97
+ output:
98
+ commodity_supplemental_food_program_eligible: false
99
+
100
+ - name: Edge case - person turns 60 during the year
101
+ period: 2024
102
+ input:
103
+ people:
104
+ person:
105
+ age: 60 # Assume they're 60 at some point in 2024
106
+ spm_units:
107
+ spm_unit:
108
+ members: [person]
109
+ school_meal_fpg_ratio: 1.0
110
+ output:
111
+ commodity_supplemental_food_program_eligible: true
112
+
113
+ - name: High income elderly person not eligible
114
+ period: 2024
115
+ input:
116
+ people:
117
+ person:
118
+ age: 80
119
+ spm_units:
120
+ spm_unit:
121
+ members: [person]
122
+ school_meal_fpg_ratio: 2.5 # Well above the 130% limit
123
+ output:
124
+ commodity_supplemental_food_program_eligible: false
125
+
126
+ - name: Young adult with very low income still not eligible
127
+ period: 2024
128
+ input:
129
+ people:
130
+ person:
131
+ age: 30
132
+ spm_units:
133
+ spm_unit:
134
+ members: [person]
135
+ school_meal_fpg_ratio: 0.5 # Very low income
136
+ output:
137
+ commodity_supplemental_food_program_eligible: false
138
+
139
+ - name: Texas income ineligible
140
+ period: 2025
141
+ input:
142
+ people:
143
+ person:
144
+ age: 65
145
+ spm_units:
146
+ spm_unit:
147
+ members: [person]
148
+ school_meal_fpg_ratio: 1.4
149
+ households:
150
+ household:
151
+ members: [person]
152
+ state_code: TX
153
+ output:
154
+ commodity_supplemental_food_program_eligible: false
155
+
156
+ - name: Texas income eligible
157
+ period: 2025
158
+ input:
159
+ people:
160
+ person:
161
+ age: 65
162
+ spm_units:
163
+ spm_unit:
164
+ members: [person]
165
+ school_meal_fpg_ratio: 1.3
166
+ households:
167
+ household:
168
+ members: [person]
169
+ state_code: TX
170
+ output:
171
+ commodity_supplemental_food_program_eligible: true
@@ -0,0 +1,14 @@
1
+ from policyengine_us.model_api import *
2
+
3
+
4
+ class tx_dta_csfp_income_eligible(Variable):
5
+ value_type = bool
6
+ entity = Person
7
+ definition_period = YEAR
8
+ label = "Texas Commodity Supplemental Food Program income eligible"
9
+ defined_for = StateCode.TX
10
+
11
+ def formula(person, period, parameters):
12
+ p = parameters(period).gov.states.tx.dta.csfp
13
+ fpg = person.spm_unit("school_meal_fpg_ratio", period)
14
+ return fpg <= p.fpg_limit
@@ -15,6 +15,11 @@ class commodity_supplemental_food_program_eligible(Variable):
15
15
  age = person("age", period)
16
16
 
17
17
  age_eligible = age >= p.min_age
18
- income_eligible = fpg <= p.fpg_limit
19
-
18
+ federal_income_eligible = fpg <= p.fpg_limit
19
+ tx_income_eligible = person("tx_dta_csfp_income_eligible", period)
20
+ state_code = person.household("state_code", period)
21
+ in_tx = state_code == StateCode.TX
22
+ income_eligible = where(
23
+ in_tx, tx_income_eligible, federal_income_eligible
24
+ )
20
25
  return age_eligible & income_eligible
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-us
3
- Version: 1.420.0
3
+ Version: 1.421.0
4
4
  Summary: Add your description here.
5
5
  Author-email: PolicyEngine <hello@policyengine.org>
6
6
  License-File: LICENSE
@@ -2859,6 +2859,7 @@ policyengine_us/parameters/gov/states/tx/dart/monthly_pass_cost/full_fare.yaml,s
2859
2859
  policyengine_us/parameters/gov/states/tx/dart/monthly_pass_cost/reduced_fare.yaml,sha256=9CpamProPEh_mqPq_M5bAcc13AEkMZ5Kk5j-XM5xDK4,367
2860
2860
  policyengine_us/parameters/gov/states/tx/dart/reduced_fare/age_threshold/child.yaml,sha256=N_rMXb6wj0V8n_BWH389K54PvYIoHc8ZTtZ8M0fgdss,720
2861
2861
  policyengine_us/parameters/gov/states/tx/dart/reduced_fare/age_threshold/senior.yaml,sha256=2xAE95i7EjipEEiqhs8ueTpK8iXeMgRAL16krpSGA00,399
2862
+ policyengine_us/parameters/gov/states/tx/dta/csfp/fpg_limit.yaml,sha256=LajGghC2JeDmnNM4EVteBchqBBUV6SmyKe_5wMusV6Y,636
2862
2863
  policyengine_us/parameters/gov/states/tx/fpp/age_threshold.yaml,sha256=X0WDitMtPqKd-N5lKgkMioBnwkkf72NMLUwXG5NdV2g,367
2863
2864
  policyengine_us/parameters/gov/states/tx/fpp/annual_benefit.yaml,sha256=73GAECik0TL1sLFbYUP-3fuD2x-gtjmnX184XPGZS40,737
2864
2865
  policyengine_us/parameters/gov/states/tx/fpp/fpg_percentage.yaml,sha256=nF_zIboTk0qYV6-aQITK8DbU55S3ckF_CiKJlkVy5QM,784
@@ -5051,6 +5052,7 @@ policyengine_us/tests/policy/baseline/gov/states/tx/dart/reduced_fare/tx_dart_re
5051
5052
  policyengine_us/tests/policy/baseline/gov/states/tx/dart/reduced_fare/eligibility/tx_dart_reduced_fare_age_eligible.yaml,sha256=XH865IatUm0mbAbwWgUILfp9XdECpZT-yrd3kqT1feI,1783
5052
5053
  policyengine_us/tests/policy/baseline/gov/states/tx/dart/reduced_fare/eligibility/tx_dart_reduced_fare_eligible.yaml,sha256=mzUYLQyoLIf8KeoeF7yKQ5xyIGVB35fX4cNef7F8Lac,2790
5053
5054
  policyengine_us/tests/policy/baseline/gov/states/tx/dart/reduced_fare/eligibility/tx_dart_reduced_fare_program_eligible.yaml,sha256=tA3qnDcT392VXNpVhBSS7ITSZcIOngB_k8oD6rcE0Sg,4868
5055
+ policyengine_us/tests/policy/baseline/gov/states/tx/dta/csfp/tx_dta_csfp_income_eligible.yaml,sha256=-mSet3H4wtCPczDGWrJ60qygR7ELz7Ezf6W501fT4to,295
5054
5056
  policyengine_us/tests/policy/baseline/gov/states/tx/fpp/integration.yaml,sha256=jwCnPITchBm87XHqJabIAVYWh9gLji8KkU5x0ZoaUWw,3113
5055
5057
  policyengine_us/tests/policy/baseline/gov/states/tx/fpp/tx_fpp_age_eligible.yaml,sha256=ANilh9RZ4cuw8BpZcGnQPITqYXxNt2BSgucwrMG6Wbg,685
5056
5058
  policyengine_us/tests/policy/baseline/gov/states/tx/fpp/tx_fpp_benefit.yaml,sha256=xPp3VS5mdTz5zUR7TudLPDUYfPm_5_W9OErD7-7MfqI,767
@@ -5254,6 +5256,7 @@ policyengine_us/tests/policy/baseline/gov/usda/has_usda_elderly_disabled.yaml,sh
5254
5256
  policyengine_us/tests/policy/baseline/gov/usda/is_usda_disabled.yaml,sha256=Vv4qYW3Q7daGgCG913RpQ_BPBd0dkWhbXy0BaCQTJzU,420
5255
5257
  policyengine_us/tests/policy/baseline/gov/usda/is_usda_elderly.yaml,sha256=NcQfi6CuMEW5HKMuNtNeH_vVl-LSCDp52wIu3ZpXpQg,222
5256
5258
  policyengine_us/tests/policy/baseline/gov/usda/csfp/commodity_supplemental_food_program.yaml,sha256=5HRzWfGmOmk7baZPGBUSPL5FsU7pKa6yDxWGhA8vTOc,432
5259
+ policyengine_us/tests/policy/baseline/gov/usda/csfp/commodity_supplemental_food_program_eligible.yaml,sha256=n_uMv-Hqr7e2nQRJO7e6w2C3_2PRSrqWqNklf9_dSaU,3933
5257
5260
  policyengine_us/tests/policy/baseline/gov/usda/csfp/integration.yaml,sha256=HrY6IZHAwTtvJbKe3jcqyPdWzX3ucVf2vrT13Wy1lOg,540
5258
5261
  policyengine_us/tests/policy/baseline/gov/usda/school_meals/free_school_meals.yaml,sha256=5scrkj13rPiGCwbn4j_qo_zVFiFm8qqKueEU46bUu_M,320
5259
5262
  policyengine_us/tests/policy/baseline/gov/usda/school_meals/integration.yaml,sha256=30mUTMZ0UHI5xxQXJ3FH8PW3yh0hPDkQPToIoR87AoQ,1188
@@ -7888,6 +7891,7 @@ policyengine_us/variables/gov/states/tx/dart/reduced_fare/tx_dart_reduced_fare_b
7888
7891
  policyengine_us/variables/gov/states/tx/dart/reduced_fare/eligibility/tx_dart_reduced_fare_age_eligible.py,sha256=a8Cv6sfXu6H3yp3HhnFk8hEnVueyuhifUz5RBQnSefs,728
7889
7892
  policyengine_us/variables/gov/states/tx/dart/reduced_fare/eligibility/tx_dart_reduced_fare_eligible.py,sha256=ofoBToD_pJ9RX4M9XiKXiZWI4qWdDeIhtNvAVU1O24I,1441
7890
7893
  policyengine_us/variables/gov/states/tx/dart/reduced_fare/eligibility/tx_dart_reduced_fare_program_eligible.py,sha256=8SGVaR1d84RmAfwGrYHvRHndtS36zA5CwPMhLQ9nHVg,904
7894
+ policyengine_us/variables/gov/states/tx/dta/csfp/tx_dta_csfp_income_eligible.py,sha256=waqJcXGYYjvEdu7o9OjYK7CIqlT4FQzxDm4n3f9nCl0,458
7891
7895
  policyengine_us/variables/gov/states/tx/fpp/tx_fpp_age_eligible.py,sha256=AYmkrR4NQA971w3XCs6Te7eSJNoX23E69EMwsWQy1pY,562
7892
7896
  policyengine_us/variables/gov/states/tx/fpp/tx_fpp_benefit.py,sha256=BGgWBNtpMiJdgnzTTEOLPsdaO12xgg_Iol7tqy-OcwU,540
7893
7897
  policyengine_us/variables/gov/states/tx/fpp/tx_fpp_eligible.py,sha256=DtpscNWnkKD5VMu4R8eO36n0JKz49NFso6X5pSDn3qo,705
@@ -8145,7 +8149,7 @@ policyengine_us/variables/gov/usda/has_usda_elderly_disabled.py,sha256=TGoDY1RW1
8145
8149
  policyengine_us/variables/gov/usda/is_usda_disabled.py,sha256=FAHSzfpYJ7gSHdMi2G9NpaymB9fib9swAAY8a4ajC38,424
8146
8150
  policyengine_us/variables/gov/usda/is_usda_elderly.py,sha256=Y84IHsW1jYbEIBL71Om0mh7G-uzy2erJiSrXtoxNTVc,438
8147
8151
  policyengine_us/variables/gov/usda/csfp/commodity_supplemental_food_program.py,sha256=3KQYtSwvroyxZfvwbhEUzjIat-vebXDbZxI9XkcyrAs,333
8148
- policyengine_us/variables/gov/usda/csfp/commodity_supplemental_food_program_eligible.py,sha256=2cNcq7NBtWbf69rD6XG8Yc0PiFKwXxWssH2ncm3CCyA,678
8152
+ policyengine_us/variables/gov/usda/csfp/commodity_supplemental_food_program_eligible.py,sha256=WT8WsRrZ62rhXPGaC1p6m0GpjkYi_5Yt5PLtHspFQNc,969
8149
8153
  policyengine_us/variables/gov/usda/fdpir/fdpir.py,sha256=rxbnLcYWTnIgiCQ52IO6pn5jf5v120Rp4ez5-UYm9mo,324
8150
8154
  policyengine_us/variables/gov/usda/school_meals/free_school_meals.py,sha256=KG3VtFLpLMptDTgceKOc642OaNYFZL3B0He9B2iifvU,663
8151
8155
  policyengine_us/variables/gov/usda/school_meals/free_school_meals_reported.py,sha256=AIk2cbkJEVAXhG5dgxV8BtuBYnA7f8YwGe6CQDXuMpU,217
@@ -8709,8 +8713,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
8709
8713
  policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
8710
8714
  policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
8711
8715
  policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
8712
- policyengine_us-1.420.0.dist-info/METADATA,sha256=nsct4Q54lFE48fcbJDZKi1eURvq5an4hPt-ZuYJ-z_c,1649
8713
- policyengine_us-1.420.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8714
- policyengine_us-1.420.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8715
- policyengine_us-1.420.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8716
- policyengine_us-1.420.0.dist-info/RECORD,,
8716
+ policyengine_us-1.421.0.dist-info/METADATA,sha256=vZ0wGl06679K5hHX4eMRVh1SmMHNfD5nPXG6Lh7dNaI,1649
8717
+ policyengine_us-1.421.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8718
+ policyengine_us-1.421.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8719
+ policyengine_us-1.421.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8720
+ policyengine_us-1.421.0.dist-info/RECORD,,