Populate eCPS-supported export inputs#196
Merged
Merged
Conversation
609f4a7 to
059d418
Compare
059d418 to
e5e4fbd
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
Tests
uv run --python 3.13 --extra dev ruff check src/microplex_us/data_sources/cps.py src/microplex_us/data_sources/puf.py src/microplex_us/pipelines/us.py src/microplex_us/variables.py tests/data_sources/test_cps_export_support_fields.py tests/test_cps_source_provider.py tests/pipelines/test_us.py tests/test_donor_survey_source_providers.py tests/test_pe_source_impute_specs.py tests/test_puf_source_provider.py && uv run --python 3.13 --extra dev ruff format --check src/microplex_us/data_sources/cps.py src/microplex_us/data_sources/puf.py src/microplex_us/pipelines/us.py src/microplex_us/variables.py tests/data_sources/test_cps_export_support_fields.py tests/test_cps_source_provider.py tests/pipelines/test_us.py tests/test_donor_survey_source_providers.py tests/test_pe_source_impute_specs.py tests/test_puf_source_provider.pyuv run --python 3.13 --extra dev python -m pytest tests/data_sources/test_cps_export_support_fields.py tests/test_cps_source_provider.py::test_load_cps_asec_attaches_previous_year_income_from_prior_asec tests/test_cps_source_provider.py::test_load_cps_asec_caches_household_geography_on_persons tests/test_cps_source_provider.py::test_load_cps_asec_derives_policyengine_value_inputs tests/test_puf_source_provider.py tests/test_pe_source_impute_specs.py tests/test_donor_survey_source_providers.py tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_augment_policyengine_person_inputs_materializes_export_support_aliases tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_attach_policyengine_tax_unit_source_inputs_derives_mortgage_structure tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_build_policyengine_households_preserves_vehicle_exports tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_build_policyengine_entity_tables_adds_ecps_stochastic_takeup_inputs tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_attach_policyengine_pregnancy_inputs_assigns_eligible_females tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_attach_policyengine_pregnancy_inputs_preserves_explicit_column tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_build_policyengine_entity_tables_adds_wic_takeup_inputs tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_build_policyengine_entity_tables_preserves_explicit_stochastic_takeup_inputs tests/pipelines/test_check_export_columns.py tests/pipelines/test_mp300k_artifact_gates.pyuv run --python 3.13 --extra dev python -m json.tool src/microplex_us/manifests/pe_source_impute_blocks.json >/tmp/pe_source_impute_blocks.json.validatedNotes
This is source-backed support population, not calibration/L0 and not manual filler values. The prior-year fields use the eCPS-style PERIDNUM join to the previous CPS ASEC when that raw zip is available; otherwise they fall back to explicit unavailable values so support parity still fails rather than pretending coverage.