Map CPS farm income to farm operations#827
Closed
MaxGhenis wants to merge 1 commit intoPolicyEngine:mainfrom
Closed
Map CPS farm income to farm operations#827MaxGhenis wants to merge 1 commit intoPolicyEngine:mainfrom
MaxGhenis wants to merge 1 commit intoPolicyEngine:mainfrom
Conversation
Contributor
Author
|
Replaced by #828 from a PolicyEngine org branch so CI can run. |
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
FRSE_VALfarm self-employment income tofarm_operations_incomeinstead offarm_income.Root cause
PolicyEngine distinguishes Schedule J-style
farm_incomefrom Schedule F farm operations income. The PUF pipeline already maps these separately, but the raw CPS builder was storingFRSE_VALinfarm_income, which makes CPS inconsistent with the model semantics and the PolicyEngine US SECA fix.Tests
uv run python -m pytest tests/unit/datasets/test_cps_income_variables.py -quv run ruff check policyengine_us_data/datasets/cps/cps.py tests/unit/datasets/test_cps_income_variables.pyuv run python -m pytest tests/unit/datasets/test_cps_income_variables.py tests/unit/datasets/test_cps_tax_unit_construction.py tests/unit/datasets/test_cps_file_handles.py -q