Commit fe540a5
Depend on microunit for tax-unit construction instead of in-repo copy
Replace the in-repo tax-unit construction engine and rule helpers with a
dependency on the standalone microunit package, re-pointing all call sites
(census_cps, the ACS wrapper, both validation scripts, and the tests). The
engine logic was extracted from this repo and is byte-identical; tax-unit
output is unchanged.
Delete policyengine_us_data/datasets/cps/tax_unit_construction.py and
tax_unit_rule_helpers.py. Keep the ACS column mapping and ACS wrapper, which
microunit deliberately excludes. Rewrite the CPS engine unit tests (which now
live in microunit) into thin integration tests for this repo's wiring; the
ACS integration tests are unchanged.
Pin microunit to a SHA until its first PyPI release and refresh uv.lock.
Fixes #1156
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent f745831 commit fe540a5
11 files changed
Lines changed: 61 additions & 1436 deletions
File tree
- changelog.d
- policyengine_us_data/datasets
- acs
- cps
- tests/unit/datasets
- validation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
0 commit comments