Skip to content

Prefer ZCTA over FIPS for all microsim contexts #6102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2025

Conversation

anth-volk
Copy link
Contributor

Fixes PolicyEngine/policyengine-api#2553.

This code ensures that for all microsimulations, including those that specify county FIPS for all households, the county FIPS values are ignored and ZCTA-based regions are used instead. This prevents bugs around county FIPS encoding that are prevalent throughout the API due to type inferences made automatically by pandas around the creation of dataframes.

I am unsure on how to test these changes and would love guidance from @PavelMakarchuk on how to proceed.

@anth-volk anth-volk requested a review from PavelMakarchuk June 6, 2025 21:10
@MaxGhenis MaxGhenis merged commit 2531a9c into master Jun 7, 2025
3 checks passed
@MaxGhenis MaxGhenis deleted the fix/disable-fips-for-microsims branch June 7, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

County FIPS is improperly encoded in microsimulation runs, causing unexpected failures
3 participants