Populate SPM subsidies and drop resource aggregates#989
Merged
Conversation
d543e53 to
7bf06d6
Compare
7e2c90d to
9c1018e
Compare
9c1018e to
f6f74f5
Compare
6c096f0 to
b431c62
Compare
b431c62 to
9e8633d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SPM_TOTVAL,SPM_RESOURCES) into generated pipeline datasets or clone QRF imputation.Contract
This builds on #974, which now fail-closes exported computed
policyengine-usvariables. Formula/adds/subtracts variables can still be temporary construction targets if a stage explicitly deconstructs or renames them to leaf inputs before export.SPM_TOTVALandSPM_RESOURCESare different: they are Census SPM output/control aggregates, not leaf inputs and not decomposable into PolicyEngine input variables in this pipeline. They should be used for validation or raw-CPS replication diagnostics only, not exported or imputed into ECPS.Validation
uv run ruff format --check policyengine_us_data/datasets/cps/cps.py policyengine_us_data/datasets/cps/extended_cps.py policyengine_us_data/datasets/cps/enhanced_cps.py policyengine_us_data/calibration/formulaic_inputs.py policyengine_us_data/storage/upload_completed_datasets.py tests/integration/support/tiny_stage_3.py tests/integration/support/tiny_stage_4.py tests/integration/support/tiny_stage_5.py tests/integration/test_cps_generation.py tests/integration/test_tiny_stage_3_artifacts.py tests/integration/test_tiny_stage_4_artifacts.py tests/unit/test_enhanced_cps_clone_diagnostics.py tests/unit/test_upload_completed_datasets.py tests/unit/test_extended_cps.pyuv run ruff check policyengine_us_data/datasets/cps/cps.py policyengine_us_data/datasets/cps/extended_cps.py policyengine_us_data/datasets/cps/enhanced_cps.py policyengine_us_data/calibration/formulaic_inputs.py policyengine_us_data/storage/upload_completed_datasets.py tests/integration/support/tiny_stage_3.py tests/integration/support/tiny_stage_4.py tests/integration/support/tiny_stage_5.py tests/integration/test_cps_generation.py tests/integration/test_tiny_stage_3_artifacts.py tests/integration/test_tiny_stage_4_artifacts.py tests/unit/test_enhanced_cps_clone_diagnostics.py tests/unit/test_upload_completed_datasets.py tests/unit/test_extended_cps.pyuv run pytest tests/unit/test_extended_cps.py tests/unit/test_enhanced_cps_clone_diagnostics.py tests/unit/test_upload_completed_datasets.py tests/integration/test_cps_generation.py tests/integration/test_tiny_stage_3_artifacts.py tests/integration/test_tiny_stage_4_artifacts.py -q(95 passed)