policyengine-us 1.407.1__py3-none-any.whl → 1.407.3__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.

@@ -14,6 +14,9 @@ values:
14
14
  - pension_income
15
15
  - rental_income
16
16
  - capital_gains
17
+ - partnership_s_corp_income
18
+ - farm_income
19
+ - farm_rent_income
17
20
 
18
21
  metadata:
19
22
  unit: list
@@ -1,4 +1,6 @@
1
1
  from policyengine_us.model_api import *
2
+ from policyengine_core.periods import period as period_
3
+ from policyengine_core.periods import instant
2
4
 
3
5
 
4
6
  def create_ctc_minimum_refundable_amount() -> Reform:
@@ -77,9 +79,17 @@ def create_ctc_minimum_refundable_amount_reform(
77
79
  if bypass:
78
80
  return create_ctc_minimum_refundable_amount()
79
81
 
80
- p = parameters(period).gov.contrib.ctc.minimum_refundable
82
+ p = parameters.gov.contrib.ctc.minimum_refundable
81
83
 
82
- if p.in_effect:
84
+ reform_active = False
85
+ current_period = period_(period)
86
+ for i in range(5):
87
+ if p(current_period).in_effect:
88
+ reform_active = True
89
+ break
90
+ current_period = current_period.offset(1, "year")
91
+
92
+ if reform_active:
83
93
  return create_ctc_minimum_refundable_amount()
84
94
  else:
85
95
  return None
@@ -1,5 +1,6 @@
1
1
  from policyengine_us.model_api import *
2
- import numpy as np
2
+ from policyengine_core.periods import period as period_
3
+ from policyengine_core.periods import instant
3
4
 
4
5
 
5
6
  def create_ctc_per_child_phase_in() -> Reform:
@@ -36,9 +37,17 @@ def create_ctc_per_child_phase_in_reform(
36
37
  if bypass:
37
38
  return create_ctc_per_child_phase_in()
38
39
 
39
- p = parameters(period).gov.contrib.ctc.per_child_phase_out
40
+ p = parameters.gov.contrib.ctc.per_child_phase_out
40
41
 
41
- if p.in_effect:
42
+ reform_active = False
43
+ current_period = period_(period)
44
+ for i in range(5):
45
+ if p(current_period).in_effect:
46
+ reform_active = True
47
+ break
48
+ current_period = current_period.offset(1, "year")
49
+
50
+ if reform_active:
42
51
  return create_ctc_per_child_phase_in()
43
52
  else:
44
53
  return None
@@ -1,5 +1,7 @@
1
1
  from policyengine_us.model_api import *
2
2
  import numpy as np
3
+ from policyengine_core.periods import period as period_
4
+ from policyengine_core.periods import instant
3
5
 
4
6
 
5
7
  def create_ctc_per_child_phase_out() -> Reform:
@@ -41,9 +43,17 @@ def create_ctc_per_child_phase_out_reform(
41
43
  if bypass:
42
44
  return create_ctc_per_child_phase_out()
43
45
 
44
- p = parameters(period).gov.contrib.ctc.per_child_phase_out
46
+ p = parameters.gov.contrib.ctc.per_child_phase_out
45
47
 
46
- if p.in_effect:
48
+ reform_active = False
49
+ current_period = period_(period)
50
+ for i in range(5):
51
+ if p(current_period).in_effect:
52
+ reform_active = True
53
+ break
54
+ current_period = current_period.offset(1, "year")
55
+
56
+ if reform_active:
47
57
  return create_ctc_per_child_phase_out()
48
58
  else:
49
59
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-us
3
- Version: 1.407.1
3
+ Version: 1.407.3
4
4
  Summary: Add your description here.
5
5
  Author-email: PolicyEngine <hello@policyengine.org>
6
6
  License-File: LICENSE
@@ -908,7 +908,7 @@ policyengine_us/parameters/gov/states/ak/dor/energy_relief.yaml,sha256=6T0AXhAjF
908
908
  policyengine_us/parameters/gov/states/ak/dor/permanent_fund_dividend.yaml,sha256=cGueJnlem2sK01bVhLjs512GHpOEMuN-CTGOv3qr9JE,651
909
909
  policyengine_us/parameters/gov/states/al/README.md,sha256=mrumWoBPgq0zXtNCUBb1U49ECXV-lvAAdJGCdBVshoc,10
910
910
  policyengine_us/parameters/gov/states/al/tax/income/agi/deductions.yaml,sha256=p-38SoM33HVvL0DJX72dJiBybQ1Z2RtDkb_9OVz4UOg,1497
911
- policyengine_us/parameters/gov/states/al/tax/income/agi/gross_income_sources.yaml,sha256=v0wWg4JGRByE7viRAJPZQl0SMErwsn1Jd0SRbHn99mU,1407
911
+ policyengine_us/parameters/gov/states/al/tax/income/agi/gross_income_sources.yaml,sha256=XIT5bVIIO1EjmObY-zb47mPbuJHeV3lv8LE1iWTluJ4,1480
912
912
  policyengine_us/parameters/gov/states/al/tax/income/deductions/federal_tax/credits.yaml,sha256=ncIfbcpLlqYTx7IPMpaQlvphV7oitGMxE11s1H5vT0w,1068
913
913
  policyengine_us/parameters/gov/states/al/tax/income/deductions/itemized/sources.yaml,sha256=U-qze5dA2ORbwrdVX8uGJuOLYM_qZctCM342Hgn2YyU,1599
914
914
  policyengine_us/parameters/gov/states/al/tax/income/deductions/itemized/work_related_expense_rate.yaml,sha256=yc_humRGPbZ8-vBZ8Y5RiWT-JKgqFbOFO6fpf49-8yA,1071
@@ -3175,10 +3175,10 @@ policyengine_us/reforms/crfb/tax_employer_payroll_tax.py,sha256=-V6vv51aYb0NRuB4
3175
3175
  policyengine_us/reforms/crfb/tax_employer_social_security_tax.py,sha256=hawAdLtwCnY3_7jUVPTM0KpeYRfT7tVk0xqCMhdxP4E,4292
3176
3176
  policyengine_us/reforms/ctc/__init__.py,sha256=mXLIEHPIXHe5PyI96pTmP9b3y1jwwTcMoRNOIx808Y4,434
3177
3177
  policyengine_us/reforms/ctc/ctc_additional_bracket.py,sha256=KNmEB_OLwpLbvaPo4w0n18VnAmg0u3efirfVVCOrWj4,2391
3178
- policyengine_us/reforms/ctc/ctc_minimum_refundable_amount.py,sha256=TWMzyJOB1KwGhZ4j8aeCc_GbIcmUqf2I1cetwc7D4y4,3352
3178
+ policyengine_us/reforms/ctc/ctc_minimum_refundable_amount.py,sha256=_IoPTVQ0bW-PtM1bfhuIPET87afksgahXszST8TZ_k4,3684
3179
3179
  policyengine_us/reforms/ctc/ctc_older_child_supplement.py,sha256=eGkehEr_26CYSFo3K4gZ2vJYR_8wDX4r776DIMEaaik,1714
3180
- policyengine_us/reforms/ctc/ctc_per_child_phase_in.py,sha256=jgfq8YOtYBc8gN-oleE8Fp2zG7h5X0LHLn6At14vFdk,1453
3181
- policyengine_us/reforms/ctc/ctc_per_child_phase_out.py,sha256=MhcXlTVpDTg1QbGPP-eq-VxKOD6eqnkoKpgbI_lc6_I,1783
3180
+ policyengine_us/reforms/ctc/ctc_per_child_phase_in.py,sha256=MD1wBu3Y5pe5VYsbwdmuTH36_TEhCJhwKswTEX_mJ7k,1766
3181
+ policyengine_us/reforms/ctc/ctc_per_child_phase_out.py,sha256=d6MN9TKAx6WpNVoH3ZY1u98zrByI1BFmvU5o5pv96zo,2115
3182
3182
  policyengine_us/reforms/deductions/salt/__init__.py,sha256=wbfISQikAqCdy0MnLC-oZKmieRksm64MKHnNFbW3Ldw,114
3183
3183
  policyengine_us/reforms/deductions/salt/limit_salt_deduction_to_property_taxes.py,sha256=F3KrYmOeR0JdkSxj7iClIdkagpHDcUpGnYLFCIjd7hw,1372
3184
3184
  policyengine_us/reforms/eitc/__init__.py,sha256=bHbMSYp45mGa_JeBgHxDeyBh2_cGoc74SGKZ_8NKCCc,100
@@ -8480,8 +8480,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
8480
8480
  policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
8481
8481
  policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
8482
8482
  policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
8483
- policyengine_us-1.407.1.dist-info/METADATA,sha256=3NjUqFtFEN6jkn2oeECI_PwKlZGqBkwx67RzdQP1Y_o,1649
8484
- policyengine_us-1.407.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8485
- policyengine_us-1.407.1.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8486
- policyengine_us-1.407.1.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8487
- policyengine_us-1.407.1.dist-info/RECORD,,
8483
+ policyengine_us-1.407.3.dist-info/METADATA,sha256=-ETrzdq5cW6F36uhVAPxcbWGY6f7_I5FqtUVA_td3IY,1649
8484
+ policyengine_us-1.407.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8485
+ policyengine_us-1.407.3.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8486
+ policyengine_us-1.407.3.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8487
+ policyengine_us-1.407.3.dist-info/RECORD,,