Commit ca7e692
Save all geography variables to CD-stacked datasets
Updates stacked_dataset_builder.py to:
- Set all geography variables from block assignment (block_geoid, tract_geoid,
cbsa_code, sldu, sldl, place_fips, vtd, puma)
- Include these variables in the saved h5 files
These variables enable granular geographic analysis at multiple levels:
state legislative districts, census tracts, metro areas, cities, etc.
Requires policyengine-us#7249 for the variable definitions.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent f948630 commit ca7e692
2 files changed
Lines changed: 22 additions & 2 deletions
File tree
- policyengine_us_data/datasets/cps/local_area_calibration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
365 | 375 | | |
366 | 376 | | |
367 | 377 | | |
| |||
636 | 646 | | |
637 | 647 | | |
638 | 648 | | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
639 | 659 | | |
640 | 660 | | |
641 | 661 | | |
| |||
0 commit comments