policyengine-us 1.432.6__py3-none-any.whl → 1.432.7__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.
@@ -135,7 +135,7 @@
135
135
  tanf: 0
136
136
  spm_unit_wic: 0
137
137
  output:
138
- pell_grant_simplified_formula_applies: true
138
+ pell_grant_simplified_formula_applies: [false, true] # main has no benefits, other has medicaid
139
139
 
140
140
  - name: Too much income
141
141
  period: 2023
@@ -0,0 +1,41 @@
1
+ - name: Categorical eligibility respects income limits with axes
2
+ period: 2025
3
+ absolute_error_margin: 100
4
+ input:
5
+ people:
6
+ parent:
7
+ age: 40
8
+ child:
9
+ age: 1
10
+ families:
11
+ fam:
12
+ members: [parent, child]
13
+ marital_units:
14
+ mu1:
15
+ members: [parent]
16
+ mu2:
17
+ members: [child]
18
+ marital_unit_id: 1
19
+ tax_units:
20
+ tu:
21
+ members: [parent, child]
22
+ spm_units:
23
+ spm:
24
+ members: [parent, child]
25
+ households:
26
+ hh:
27
+ members: [parent, child]
28
+ state_code: CA
29
+ axes:
30
+ - - name: employment_income
31
+ min: 0
32
+ max: 100_000
33
+ count: 5
34
+ output:
35
+ # At $0, $25k, $50k, $75k, $100k income
36
+ # Child should only be eligible at low incomes (below ~$26k FPG for family of 2)
37
+ is_early_head_start_eligible: [True, True, False, False, False, True, True, False, False, False]
38
+ # SPM unit lifeline eligibility (indices 0,2,4,6,8 for 5 income levels)
39
+ is_lifeline_eligible: [True, False, False, False, False]
40
+ # Household CA CARE eligibility (indices 0,2,4,6,8 for 5 income levels)
41
+ ca_care_categorically_eligible: [True, False, False, False, False]
@@ -12,6 +12,5 @@ class pell_grant_simplified_formula_applies(Variable):
12
12
  head_income = tax_unit("pell_grant_primary_income", period)
13
13
  p = parameters(period).gov.ed.pell_grant.efc.simplified
14
14
  income_eligible = head_income < p.income_limit
15
- total_benefits = add(tax_unit, period, p.benefits)
16
- has_benefits = np.any(total_benefits > 0)
15
+ has_benefits = add(tax_unit, period, p.benefits) > 0
17
16
  return income_eligible & has_benefits & p.applies
@@ -21,8 +21,8 @@ class is_lifeline_eligible(Variable):
21
21
  )
22
22
  categorically_eligible = np.where(
23
23
  is_on_tribal_land,
24
- np.any(tribal_lifeline_programs),
25
- np.any(non_tribal_lifeline_programs),
24
+ tribal_lifeline_programs > 0,
25
+ non_tribal_lifeline_programs > 0,
26
26
  )
27
27
  # Use the new unified income eligibility variable
28
28
  income_eligible = spm_unit("is_lifeline_income_eligible", period)
@@ -17,6 +17,6 @@ class ca_care_categorically_eligible(Variable):
17
17
  tribal_lifeline_programs = add(household, period, p.tribal_categorical)
18
18
  return np.where(
19
19
  is_on_tribal_land,
20
- np.any(tribal_lifeline_programs),
21
- np.any(non_tribal_lifeline_programs),
20
+ tribal_lifeline_programs > 0,
21
+ non_tribal_lifeline_programs > 0,
22
22
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-us
3
- Version: 1.432.6
3
+ Version: 1.432.7
4
4
  Summary: Add your description here.
5
5
  Author-email: PolicyEngine <hello@policyengine.org>
6
6
  License-File: LICENSE
@@ -3419,6 +3419,7 @@ policyengine_us/tests/policy/baseline/contrib/ubi_center/basic_income_eligible.y
3419
3419
  policyengine_us/tests/policy/baseline/contrib/ubi_center/basic_income_phase_in.yaml,sha256=NQqlPRrHDMbNADaFbzHa3BBtZFpC6mXXs6MJBI8DbTM,1274
3420
3420
  policyengine_us/tests/policy/baseline/contrib/ubi_center/basic_income_phase_out.yaml,sha256=hVUNLNcgpSpDPD5ogSLCOKeEhcVplmML0MZR_KQPLsg,772
3421
3421
  policyengine_us/tests/policy/baseline/gov/abolitions.yaml,sha256=KpFguu-FjU6H0PNZ7uyQymy7g4gRbfUTVVxYPj0b02w,250
3422
+ policyengine_us/tests/policy/baseline/gov/test_categorical_eligibility_vectorization.yaml,sha256=cmmrBz_8brf7e_7X_fYUX8Z4UzTrO0nhCjmsZ0uyOsA,1191
3422
3423
  policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_child_index.yaml,sha256=T3vKbC6typ0DO8qMVkUM-GfsyItUpyHnjM98KG6_BEs,413
3423
3424
  policyengine_us/tests/policy/baseline/gov/aca/eligibility/aca_magi.yaml,sha256=rYl5rPlZg-_LJIhiyDtwyDY0v7xMZoB-98weSvWWIZQ,892
3424
3425
  policyengine_us/tests/policy/baseline/gov/aca/eligibility/is_aca_eshi_eligible.yaml,sha256=XlrN4Hs9Uo-6KU1eWE7EZazb4KKf6QqIxdQLHN8_x88,542
@@ -3451,7 +3452,7 @@ policyengine_us/tests/policy/baseline/gov/doe/high_efficiency_electric_home_reba
3451
3452
  policyengine_us/tests/policy/baseline/gov/doe/residential_efficiency_electrification_rebate_program/residential_efficiency_electrification_rebate.yaml,sha256=zvI71cXcqxLmWMrGeVxvThuV6qeoxrJxyLylERpuYAg,2577
3452
3453
  policyengine_us/tests/policy/baseline/gov/ed/pell_grant/pell_grant.yaml,sha256=54khnkBUsX3irQw0fcLpRU0FAPF9Ec0VECOXwY_lYLI,1719
3453
3454
  policyengine_us/tests/policy/baseline/gov/ed/pell_grant/pell_grant_formula.yaml,sha256=922Z9zpQrnf7TvV9qelKM80PHV_2SVccb4zjJgJK-_8,666
3454
- policyengine_us/tests/policy/baseline/gov/ed/pell_grant/pell_grant_simplified_formula_applies.yaml,sha256=8Dn88rWvM3ywC2IY-KAvDCYpzLy60yaZBnuAl_VaZzQ,2898
3455
+ policyengine_us/tests/policy/baseline/gov/ed/pell_grant/pell_grant_simplified_formula_applies.yaml,sha256=B--hlfDdgKNjeeSMJGa8Eyav8aDVL12E80NlkEJ510o,2951
3455
3456
  policyengine_us/tests/policy/baseline/gov/ed/pell_grant/dependent/pell_grant_dependent_allowances.yaml,sha256=rAZIdoR0bK26DF8JVAlLqt72FnWztBfWKxsmYa5H4WM,608
3456
3457
  policyengine_us/tests/policy/baseline/gov/ed/pell_grant/dependent/pell_grant_dependent_contribution.yaml,sha256=6KfjUIGt5mNwQ0eStdh0bkrS7hCK6tLPZIURvAg8mew,1444
3457
3458
  policyengine_us/tests/policy/baseline/gov/ed/pell_grant/dependent/pell_grant_dependents_in_college.yaml,sha256=t3JFIIOW3If_lbp9yfNkTuOLTNL15HRt3mrSW2zTKI0,832
@@ -5696,7 +5697,7 @@ policyengine_us/variables/gov/ed/pell_grant/dependent/pell_grant_dependent_contr
5696
5697
  policyengine_us/variables/gov/ed/pell_grant/dependent/pell_grant_dependent_other_allowances.py,sha256=uZxYiH-F-SIseRaqgLnYlflw7Nazmg_Nl7AbPReMa7I,236
5697
5698
  policyengine_us/variables/gov/ed/pell_grant/efc/pell_grant_dependents_in_college.py,sha256=B4j9_-1KxIZcoBE2nsiGXCK9MKESPAOX-UUi8FZ9rP8,488
5698
5699
  policyengine_us/variables/gov/ed/pell_grant/efc/pell_grant_efc.py,sha256=ReZAFCtnowXQEr6__G74ffD6cXscAZ90vThBr8qI2fw,1133
5699
- policyengine_us/variables/gov/ed/pell_grant/efc/pell_grant_simplified_formula_applies.py,sha256=8kEDI-3CoUa5r68yv10P3reNab2KpwR6LxqV2TdCUWA,651
5700
+ policyengine_us/variables/gov/ed/pell_grant/efc/pell_grant_simplified_formula_applies.py,sha256=g1hOGhz7h96nR5kV-n9xY0pe5_2OaNV0NLIjW6FDp-8,603
5700
5701
  policyengine_us/variables/gov/ed/pell_grant/efc/pell_grant_uses_efc.py,sha256=c8Mbs2rQYg_ZIFX8dIZABzLhMbW_AIfsLWnKdeBgQDE,385
5701
5702
  policyengine_us/variables/gov/ed/pell_grant/head/pell_grant_head_allowances.py,sha256=te4MlQds6xbC3RX0QQ_NWDcC9FV0zCJr6-fDnKSS1XU,214
5702
5703
  policyengine_us/variables/gov/ed/pell_grant/head/pell_grant_head_assets.py,sha256=BMMA4gh8e7Rt-VR6FDz-oWd5hQLxb4wPGAumYQlls4E,550
@@ -5717,7 +5718,7 @@ policyengine_us/variables/gov/fcc/ebb/ebb.py,sha256=b6GkGJTr1EUM67vvgek7P-T88o7r
5717
5718
  policyengine_us/variables/gov/fcc/ebb/enrolled_in_ebb.py,sha256=8f2mhjIC2P3cNtOoAqoOp1OZTXZ9Z2HRWhCo40_OweI,298
5718
5719
  policyengine_us/variables/gov/fcc/ebb/is_ebb_eligible.py,sha256=deBBKNw-ehQOHhNDDMTEWoW0HyysYxBw-DWPux4ifzw,754
5719
5720
  policyengine_us/variables/gov/fcc/lifeline/broadband_cost_after_lifeline.py,sha256=QwdwiK-ghWxGghuLU8ib3hOTcln1HXxanXgQk84jT90,545
5720
- policyengine_us/variables/gov/fcc/lifeline/is_lifeline_eligible.py,sha256=9y87YwHwQkfLt2c0kkZfvPtX4zqHofT8dbI4D0efets,1117
5721
+ policyengine_us/variables/gov/fcc/lifeline/is_lifeline_eligible.py,sha256=Kv4iAgCC7hC6fUkIy6ufZmFV0pg-gwPWv32ubDDRdW8,1109
5721
5722
  policyengine_us/variables/gov/fcc/lifeline/is_lifeline_income_eligible.py,sha256=KcwZ8ar3G3O1tUS8YQTyBDAQyfYod3LA9guLTBLkXSU,1279
5722
5723
  policyengine_us/variables/gov/fcc/lifeline/lifeline.py,sha256=U39enY0v1HJXf9X7DY1lBjjeOkGxtAKDTnVQqZU3LQw,1890
5723
5724
  policyengine_us/variables/gov/hhs/hhs_smi.py,sha256=CfCM973bROOtUqPnp7MokOQBaZv1huJiDh37WYs0vME,1162
@@ -6447,7 +6448,7 @@ policyengine_us/variables/gov/states/ca/cdss/tanf/child_care/reimbursement/ca_ca
6447
6448
  policyengine_us/variables/gov/states/ca/chhs/is_ca_medicaid_immigration_status_eligible.py,sha256=fAUNCk-fQJWqEOhBvJj8bXHZLipbKHILMmIcxs7RVGY,675
6448
6449
  policyengine_us/variables/gov/states/ca/cpuc/care/ca_care.py,sha256=7iOkWAbGhFDCg8aMTJgMrEdAKqc4l9fM1BU_Wq4Fl18,656
6449
6450
  policyengine_us/variables/gov/states/ca/cpuc/care/ca_care_amount_if_eligible.py,sha256=C0YjEX789tM6x9ZNCfqoqdNRydDJ4NMtZwyGOileqGM,695
6450
- policyengine_us/variables/gov/states/ca/cpuc/care/eligibility/ca_care_categorically_eligible.py,sha256=dgGynZU6eaJDm8K_XNRzYKisi-Gw79QX-JUjmXCfPG4,987
6451
+ policyengine_us/variables/gov/states/ca/cpuc/care/eligibility/ca_care_categorically_eligible.py,sha256=OUrSo-zQWNYKy9CG9ZpkUuX8joRMxHXAAWPgdPfhZ3k,979
6451
6452
  policyengine_us/variables/gov/states/ca/cpuc/care/eligibility/ca_care_eligible.py,sha256=uF8wxrLTfP7U_4FJR0VO130882LecXCPkMv2GCj2ZC4,493
6452
6453
  policyengine_us/variables/gov/states/ca/cpuc/care/eligibility/ca_care_income_eligible.py,sha256=xoB5jnnLQIrA0D3aNnQzTVwGzSDX6aFkEmz7H1n6N-U,951
6453
6454
  policyengine_us/variables/gov/states/ca/cpuc/care/eligibility/ca_care_poverty_line.py,sha256=730F0hmE8A0CB4t-YLKDFqhs7M8tr1Y0OduhbP0m21Y,852
@@ -8862,8 +8863,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
8862
8863
  policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
8863
8864
  policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
8864
8865
  policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
8865
- policyengine_us-1.432.6.dist-info/METADATA,sha256=75a1X1rBDk5oUiuFSwY3cJfpIfORQ6R8GDCssdxOf08,1649
8866
- policyengine_us-1.432.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8867
- policyengine_us-1.432.6.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8868
- policyengine_us-1.432.6.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8869
- policyengine_us-1.432.6.dist-info/RECORD,,
8866
+ policyengine_us-1.432.7.dist-info/METADATA,sha256=39OecTuSi1nJv5hldl9tm2LkJGjR3FCHYlaenWehl0s,1649
8867
+ policyengine_us-1.432.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8868
+ policyengine_us-1.432.7.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8869
+ policyengine_us-1.432.7.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8870
+ policyengine_us-1.432.7.dist-info/RECORD,,