Remove policyengine-us-data runtime imports#162
Merged
Conversation
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
policyengine_us_data.parameterspe_l0to an explicit experimental adapter requiring an injected fitter; zero-L0 stays on the local dense no-gate pathpolicyengine_us_dataimports insrc/microplex_usNotes
This removes production runtime imports of
policyengine_us_datafrom MP package code. Benchmark/comparison/parity entrypoints can still accept explicit eCPS H5/repo paths because MP still needs to compare against eCPS while replacing it.L0 is intentionally not part of the current production MP/eCPS path. The active eCPS replacement builds use entropy/no-L0; nonzero L0 now requires deliberate experimental injection rather than implicit
policyengine-us-dataloading.Tests
uv run ruff check src/microplex_us/pipelines/us.py tests/pipelines/test_us.py src/microplex_us/pipelines/pe_l0.py tests/pipelines/test_pe_l0.py src/microplex_us/data_sources/puf.py tests/test_puf_source_provider.py tests/test_no_policyengine_us_data_runtime_imports.pyuv run ruff format --check src/microplex_us/pipelines/us.py tests/pipelines/test_us.py src/microplex_us/pipelines/pe_l0.py tests/pipelines/test_pe_l0.py src/microplex_us/data_sources/puf.py tests/test_puf_source_provider.py tests/test_no_policyengine_us_data_runtime_imports.pyuv run pytest tests/pipelines/test_us.py tests/pipelines/test_pe_l0.py tests/test_puf_source_provider.py tests/test_no_policyengine_us_data_runtime_imports.py -q -k "(policyengine_entity_tables and (takeup or wic or stochastic or child_count)) or pe_l0 or pre_tax_contributions or no_policyengine_us_data"src/microplex_us/**/*.pyfor directpolicyengine_us_dataimports