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

@@ -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
@@ -38,7 +38,7 @@ class ny_ctc_pre_2024(Variable):
38
38
  if isinstance(ctc_parameter, Parameter):
39
39
  ctc_parameter.update(
40
40
  start=instant("2017-01-01"),
41
- stop=instant("2026-01-01"),
41
+ stop=instant("2035-01-01"),
42
42
  value=ctc_parameter("2017-01-01"),
43
43
  )
44
44
  # Delete all arrays from pre-TCJA CTC branch.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-us
3
- Version: 1.407.0
3
+ Version: 1.407.2
4
4
  Summary: Add your description here.
5
5
  Author-email: PolicyEngine <hello@policyengine.org>
6
6
  License-File: LICENSE
@@ -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
@@ -7462,7 +7462,7 @@ policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_post_2024.
7462
7462
  policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_post_2024_base.py,sha256=firvDXTyXDQvjDzEaMMi8vTiFQ8_L1Tk3o3hLYzMdWM,1037
7463
7463
  policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_post_2024_eligible.py,sha256=8PP4Om-O5C3XUfSjFe5puZ7dORf0jVm0DXwDkt09E04,1223
7464
7464
  policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_post_2024_phase_out.py,sha256=bFxYim4489rCULP1Wjo6hzFCCEo51T5AVI4du4vl2MQ,1533
7465
- policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_pre_2024.py,sha256=NQBL28lN4O8uOes-no6yiG6omwbI6GC3HSZ7ifAr9-8,3909
7465
+ policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_pre_2024.py,sha256=qjKFRkUkLky0x-VuKvdF6CdqlExNrflYTZgTrMcLoZ8,3909
7466
7466
  policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_pre_2024_eligible.py,sha256=ZS_8sFxPdFZ_rOHvZTwLv_VQh-N2iSBmABHrdBSYPjg,2269
7467
7467
  policyengine_us/variables/gov/states/ny/tax/income/credits/solar_energy_systems/ny_qualified_solar_energy_systems_equipment_expenditures.py,sha256=PkPQD477kkTqtDyeg7SdevSg7abb04oMBJ5xHFHpspI,407
7468
7468
  policyengine_us/variables/gov/states/ny/tax/income/credits/solar_energy_systems/ny_solar_energy_systems_equipment_credit.py,sha256=L8StSE44y0qJfowTiE2kjkFV1HipBwOdjfv2W7tlKfE,768
@@ -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.0.dist-info/METADATA,sha256=ATkaWtTS25ldD_nciFznndHHCpAjZS4NTMMmlYMvmRQ,1649
8484
- policyengine_us-1.407.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8485
- policyengine_us-1.407.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8486
- policyengine_us-1.407.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8487
- policyengine_us-1.407.0.dist-info/RECORD,,
8483
+ policyengine_us-1.407.2.dist-info/METADATA,sha256=mDkgKQDsdKSG9lgOsT8kfBaZYJcuNY6WBbkSyjVw3Vw,1649
8484
+ policyengine_us-1.407.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8485
+ policyengine_us-1.407.2.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8486
+ policyengine_us-1.407.2.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8487
+ policyengine_us-1.407.2.dist-info/RECORD,,