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

@@ -55,21 +55,3 @@
55
55
  state_code: CA
56
56
  output:
57
57
  spm_unit_income_decile: 10
58
-
59
- - name: Zero weight SPM unit does not get assigned a decile
60
- period: 2024
61
- input:
62
- people:
63
- person1:
64
- age: 30
65
- spm_units:
66
- spm_unit1:
67
- members: [person1]
68
- spm_unit_oecd_equiv_net_income: 25_000
69
- spm_unit_weight: 0
70
- households:
71
- household1:
72
- members: [person1]
73
- state_code: CA
74
- output:
75
- spm_unit_income_decile: 0
@@ -1,4 +1,5 @@
1
1
  from policyengine_us.model_api import *
2
+ from microdf import MicroSeries
2
3
 
3
4
 
4
5
  class spm_unit_income_decile(Variable):
@@ -9,8 +10,6 @@ class spm_unit_income_decile(Variable):
9
10
  definition_period = YEAR
10
11
 
11
12
  def formula(spm_unit, period, parameters):
12
- from microdf import MicroSeries
13
-
14
13
  income = spm_unit("spm_unit_oecd_equiv_net_income", period)
15
14
  weights = spm_unit("spm_unit_weight", period) * spm_unit.nb_persons()
16
15
  return MicroSeries(income, weights=weights).decile_rank()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-us
3
- Version: 1.351.3
3
+ Version: 1.351.4
4
4
  Summary: Add your description here.
5
5
  Author-email: PolicyEngine <hello@policyengine.org>
6
6
  License-File: LICENSE
@@ -5009,7 +5009,7 @@ policyengine_us/tests/policy/baseline/household/income/spm_unit/spm_unit_is_in_s
5009
5009
  policyengine_us/tests/policy/baseline/household/income/spm_unit/spm_unit_market_income.yaml,sha256=gd9JLw32eDURuKYPjxwQZhyRV_6JBWcAm8qk83Tpuus,276
5010
5010
  policyengine_us/tests/policy/baseline/household/income/spm_unit/spm_unit_net_income.yaml,sha256=lZorN8LQYPCNpHDriLdLbaJ8vg3kHHK_UIVcbo7tkdk,218
5011
5011
  policyengine_us/tests/policy/baseline/household/income/tax_unit/spouse_separate_adjusted_gross_income.yaml,sha256=zNhFBR3IFmCJjnScfTvpVfmUv3Xl-yIXKlFA3pNjwsg,373
5012
- policyengine_us/tests/policy/baseline/income/spm_unit_income_decile.yaml,sha256=aPql88ytCKKZp_bxmH8yGgC8_4DW465xYyNqUsas6i0,1648
5012
+ policyengine_us/tests/policy/baseline/income/spm_unit_income_decile.yaml,sha256=1wLKnDqXKVBadZKYVGYlA1NpsS8VgHAlnV9JU97IRf4,1263
5013
5013
  policyengine_us/tests/policy/contrib/dc_kccatc.yaml,sha256=v4woAJveF3mZH6d4W3xAYlejcTIHTEQZM4nnenGNq-8,1786
5014
5014
  policyengine_us/tests/policy/contrib/dc_single_joint_threshold_ratio.yaml,sha256=vDMmkKdvjCtR8uweKDptp1gt05OI78Pm7GoIL0Apxxg,632
5015
5015
  policyengine_us/tests/policy/contrib/reported_state_income_tax.yaml,sha256=697RFAYWbmvD4LdQA-RHnIJ8nuu9wwEc2IRejdJ4QAQ,232
@@ -8094,7 +8094,7 @@ policyengine_us/variables/household/income/spm_unit/spm_unit_capped_housing_subs
8094
8094
  policyengine_us/variables/household/income/spm_unit/spm_unit_energy_subsidy.py,sha256=4sikpqROToak71R57YEFthjxabRoVo0tK1XVMSMtxQ4,488
8095
8095
  policyengine_us/variables/household/income/spm_unit/spm_unit_energy_subsidy_reported.py,sha256=4FYjIyyXCK1Wsiakq1aFs9mItOGy4rrcTWOH4tbIrHU,271
8096
8096
  policyengine_us/variables/household/income/spm_unit/spm_unit_fips.py,sha256=5QDrBrIraBnRRSXwZfsTO-sIYLwdLORTiNdwBiUOalo,295
8097
- policyengine_us/variables/household/income/spm_unit/spm_unit_income_decile.py,sha256=q2lPNxCvp1fUqIGGtdWpScTTRhGBuOADwLj0zL8semY,593
8097
+ policyengine_us/variables/household/income/spm_unit/spm_unit_income_decile.py,sha256=P7RIRqa1L-Nn-Rt_i0IkWN1NAbtiRmz2g9XUoNTYDDw,584
8098
8098
  policyengine_us/variables/household/income/spm_unit/spm_unit_is_in_deep_spm_poverty.py,sha256=epHelbN5RdzUM3DIVy_ON8Mf8N7Lc_-zxZ7CeJn-pq8,428
8099
8099
  policyengine_us/variables/household/income/spm_unit/spm_unit_is_in_spm_poverty.py,sha256=0fVppPyrvQuu4hBHbl44TfXrEaKyqX5oJqKMZHc9fcY,414
8100
8100
  policyengine_us/variables/household/income/spm_unit/spm_unit_market_income.py,sha256=GpSFUcSEsBYWVBZBR3VmdMgIMMMTHYCizvalPzlF0rk,228
@@ -8122,8 +8122,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
8122
8122
  policyengine_us/variables/input/geography.py,sha256=XmBlgXhzBoLRKk6R8taVZHqUw1eU8MbNeGS9iJ7_l44,4506
8123
8123
  policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
8124
8124
  policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
8125
- policyengine_us-1.351.3.dist-info/METADATA,sha256=H83YtzILLEf2FVwXIgv5wrjoIGHRIw1gHsnTMIou1YM,1693
8126
- policyengine_us-1.351.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8127
- policyengine_us-1.351.3.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8128
- policyengine_us-1.351.3.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8129
- policyengine_us-1.351.3.dist-info/RECORD,,
8125
+ policyengine_us-1.351.4.dist-info/METADATA,sha256=H-OjdFUuH7HXuVduLxQWmB99M4sZmsUA4mhdJIM3u5s,1693
8126
+ policyengine_us-1.351.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8127
+ policyengine_us-1.351.4.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8128
+ policyengine_us-1.351.4.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8129
+ policyengine_us-1.351.4.dist-info/RECORD,,