Add CPS SPM takeup source inputs#126
Merged
Merged
Conversation
d70ad71 to
a63305b
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
Fills a distinct CPS/SPM slice of the remaining eCPS column gap without overlapping PR #125's G7 income-copy lane or PR #127's G6/G8/G9 recode lane.
SPM_CAPHOUSESUBSPM_ENGVALtospm_unit_energy_subsidyon the SPM-unit table and allow it as a data-overridable computed exportValidation
uv run --extra dev python -m pytest tests/test_cps_source_provider.py::test_load_cps_asec_derives_policyengine_value_inputs tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_build_policyengine_entity_tables_preserves_spm_source_inputs tests/policyengine/test_us.py::TestPolicyEngineUSProjection::test_build_policyengine_us_export_variable_maps_includes_contract_inputs -quv run --extra dev ruff check src/microplex_us/data_sources/cps.py src/microplex_us/microdata_roles.py src/microplex_us/pipelines/us.py src/microplex_us/policyengine/us.py tests/test_cps_source_provider.py tests/pipelines/test_us.py tests/policyengine/test_us.pyNote: I did not run file-wide
ruff format --checkbecause currentorigin/mainwould reformat unrelated existing lines in touched files; the patch intentionally avoids that churn.Release gate
This should merge before the next CPS-spine rebuild, but it is not by itself enough to replace eCPS. Any policyengine-bundles release /
policyengine.pydataset switch should wait for a fresh build plus sound eCPS comparison, reform benchmark, and reproducibility checks.