Migrate impact computation off split state H5 files
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start with get_state_dataset() in scripts/compute_impacts.py and compare its dataset selection with the path documented in .claude/commands/score-bill.md. Trace how policyengine.py applies region scoping, then migrate both references to the certified national dataset while preserving state_fips and congressional_district_geoid calculations. Done means no state- or district-specific H5 URLs remain and district calculations use the national file.
Written by the indexing model from the issue text.
Description
Populace US releases are moving to a single national populace_us_2024.h5 plus region scoping, so this repo should stop downloading policyengine-us-data/states/{STATE}.h5 in scripts/compute_impacts.py.
Current references:
scripts/compute_impacts.py:get_state_dataset()downloadsstates/{STATE}.h5frompolicyengine/policyengine-us-data..claude/commands/score-bill.mddocuments the same state-specific dataset path.
Expected migration:
- Use the certified national Populace dataset and scope by
state_fips/congressional_district_geoidthroughpolicyengine.pyregion scoping, or a shared helper that preserves equivalent semantics. - Do not synthesize one-H5-per-state or one-H5-per-district URLs.
- Keep district calculations based on the national file's
congressional_district_geoidsupport.
Note: the current local checkout has active uncommitted work on add-manifold-markets, so I did not patch it in place.
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 2
- Avg merge
- 28m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PolicyEngine/state-legislative-tracker
-
[] Bill TriageOpenbill-triage
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
[WY] Bill TriageOpenbill-triage
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
[US] Bill TriageOpenbill-triage
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
[LA] Bill TriageOpenbill-triage
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
[ID] Bill TriageOpenbill-triage
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in PolicyEngine/state-legislative-tracker
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
[quality] Nothing keeps docs/skills/manifest.md in sync with docs/skills/*.mdPossibly taken @hivecommons-hive claimed this today. Openagent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5n31 quality testing
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
needs verification
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
apache/rocketmq-dashboard#6610 ·
Maintainers usually reply within 3 days