Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions dashboard/src/data/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15579,12 +15579,6 @@
"kind_label": "Internal & process",
"tooling_relevant": false
},
{
"name": "reweight",
"kind": "library",
"kind_label": "Libraries",
"tooling_relevant": true
},
{
"name": "pritzker",
"kind": "grant-proposal",
Expand Down Expand Up @@ -18453,19 +18447,6 @@
],
"total": 2
},
{
"name": "reweight",
"kind": "library",
"kind_label": "Libraries",
"tooling_relevant": true,
"description": "",
"visibility": "PUBLIC",
"pushed_at": "2026-04-28T00:37:00Z",
"skills": [],
"agents": [],
"commands": [],
"total": 0
},
{
"name": "pritzker",
"kind": "grant-proposal",
Expand Down
1 change: 0 additions & 1 deletion scripts/build_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ class Artifact:
"microunit": "library",
"mortality": "library",
"rdbl": "library",
"reweight": "library",
"l0": "library",
"L0": "library",
"linecheck": "library",
Expand Down
6 changes: 0 additions & 6 deletions scripts/policyengine_repos.json
Original file line number Diff line number Diff line change
Expand Up @@ -1037,12 +1037,6 @@
"visibility": "PUBLIC",
"pushed_at": "2026-04-28T00:37:09Z"
},
{
"name": "reweight",
"description": "",
"visibility": "PUBLIC",
"pushed_at": "2026-04-28T00:37:00Z"
},
{
"name": "rdbl",
"description": "A Python package to format numbers for readability",
Expand Down
4 changes: 2 additions & 2 deletions skills/policyengine-healthcare/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ import policyengine as pe
r = pe.us.calculate_household(
people=[{"age": 45, "employment_income": 35_000}],
tax_unit={"filing_status": "SINGLE"},
household={"state_code": "TX"},
household={"state_code": "TX", "county_fips": "48201"},
year=2026,
extra_variables=["aca_ptc", "household_net_income_including_health_benefits"],
)
assert round(r.tax_unit.aca_ptc, 2) == 6_250.38 # a real PTC...
assert round(r.tax_unit.aca_ptc, 2) == 6_635.45 # a real PTC...
# ...but it is NOT in default net income; the gap is exactly the PTC:
gap = (r.household.household_net_income_including_health_benefits
- r.household.household_net_income)
Expand Down
16 changes: 8 additions & 8 deletions skills/policyengine-us/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def odc(dependent):
return pe.us.calculate_household(
people=[{"age": 45, "employment_income": 40_000}, kid],
tax_unit={"filing_status": "HEAD_OF_HOUSEHOLD"},
household={"state_code": "CA"},
household={"state_code": "CA", "county_fips": "06037"},
year=2026,
).tax_unit.ctc

Expand All @@ -120,13 +120,13 @@ r = pe.us.calculate_household(
{"age": 5},
],
tax_unit={"filing_status": "JOINT"},
household={"state_code": "NY"},
household={"state_code": "NY", "county_fips": "36061"},
year=2026,
)
assert round(r.tax_unit.ctc) == 4_400 # 2 children x $2,200 (OBBBA, 2026)
assert round(r.tax_unit.eitc) == 7_316 # federal EITC (tax_unit)
assert round(r.spm_unit.snap) == 7_364 # annual = sum of 12 monthly allotments
assert round(r.household.household_net_income) == 62_681
assert round(r.spm_unit.snap) == 8_061 # annual = sum of 12 monthly allotments
assert round(r.household.household_net_income) == 47_929
```

Here `income_tax` is about −$10,691 (refundable EITC + CTC exceed liability), so
Expand All @@ -144,7 +144,7 @@ import policyengine as pe
r = pe.us.calculate_household(
people=[{"age": 35, "employment_income": 25_000}, {"age": 8}],
tax_unit={"filing_status": "HEAD_OF_HOUSEHOLD"},
household={"state_code": "NY"},
household={"state_code": "NY", "county_fips": "36061"},
year=2026,
extra_variables=["in_poverty", "person_in_poverty", "is_child"],
)
Expand Down Expand Up @@ -218,12 +218,12 @@ import policyengine as pe
r = pe.us.calculate_household(
people=[{"age": 30, "employment_income": 20_000}, {"age": 4}],
tax_unit={"filing_status": "HEAD_OF_HOUSEHOLD"},
household={"state_code": "CA"},
household={"state_code": "CA", "county_fips": "06037"},
year=2026,
extra_variables=["ca_eitc"],
)
assert round(r.tax_unit.eitc) == 4_427 # federal EITC
assert round(r.tax_unit.ca_eitc, 2) == 410.16 # CalEITC (state)
assert round(r.tax_unit.ca_eitc, 2) == 401.89 # CalEITC (state)
assert r.tax_unit.state_income_tax < 0 # refundable CA credits exceed liability
```

Expand All @@ -236,7 +236,7 @@ SNAP is the US benefit whose timing most often surprises analysts. Everything be
against the model source.

**SNAP is monthly.** `snap` and its inputs have `definition_period = MONTH`. When
`calculate_household` reports an annual figure (like the $7,364 above), it is the **sum of twelve
`calculate_household` reports an annual figure (like the $8,061 above), it is the **sum of twelve
monthly allotments** — not one annual calculation. That is why SNAP produces partial-year cliffs
that annual-only reasoning misses.

Expand Down
10 changes: 5 additions & 5 deletions skills/policyengine/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ import policyengine as pe
result = pe.us.calculate_household(
people=[{"age": 40, "employment_income": 50_000}, {"age": 8}],
tax_unit={"filing_status": "HEAD_OF_HOUSEHOLD"},
household={"state_code": "CA"},
household={"state_code": "CA", "county_fips": "06037"},
year=2026,
extra_variables=["income_tax"],
)
assert result.tax_unit.ctc == 2_200 # OBBBA CTC, 2026
assert round(result.household.household_net_income) == 46_358
assert round(result.household.household_net_income) == 46_369
print(result.spm_unit.snap, result.tax_unit.eitc, result.tax_unit.income_tax)
```

Expand All @@ -81,13 +81,13 @@ import policyengine as pe
baseline = pe.us.calculate_household(
people=[{"age": 40, "employment_income": 50_000}, {"age": 8}],
tax_unit={"filing_status": "HEAD_OF_HOUSEHOLD"},
household={"state_code": "CA"},
household={"state_code": "CA", "county_fips": "06037"},
year=2026,
)
reformed = pe.us.calculate_household(
people=[{"age": 40, "employment_income": 50_000}, {"age": 8}],
tax_unit={"filing_status": "HEAD_OF_HOUSEHOLD"},
household={"state_code": "CA"},
household={"state_code": "CA", "county_fips": "06037"},
year=2026,
reform={"gov.irs.credits.ctc.amount.base[0].amount": 3_000},
)
Expand Down Expand Up @@ -116,7 +116,7 @@ import policyengine as pe
result = pe.us.calculate_household(
people=[{"age": 40}],
tax_unit={"filing_status": "SINGLE"},
household={"state_code": "TX"},
household={"state_code": "TX", "county_fips": "48201"},
year=2026,
axes=[[{"name": "employment_income", "min": 0, "max": 200_000, "count": 401}]],
)
Expand Down
Loading