-
Notifications
You must be signed in to change notification settings - Fork 16
Add HHS to geomapper util #610
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, approving regardless of how you do or don't address my one comment.
@@ -102,8 +106,10 @@ def __init__(self): | |||
""" | |||
self.crosswalk_filepaths = CROSSWALK_FILEPATHS | |||
self.crosswalks = { | |||
"zip": {"fips": None, "hrr": None, "msa": None, "pop": None, "state": None}, | |||
"fips": {"zip": None, "hrr": None, "msa": None, "pop": None, "state": None}, | |||
"zip": {"fips": None, "hrr": None, "msa": None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these always going to have None
as the value? Might be more scalable/futureproof to write as a dictionary comprehension:
"zip": {x:None for x in ["fips",...]}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so, unless we end up preloading crosswalks sometime? I'll add your suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Description
Currently based on the #609 branch for simpler reviewing Rebase to main and merge after #609 is merged
Adds the code to do HHS mapping to the geomapper util, assuming the mapping files are already made.
Changelog
Itemize code/test/documentation changes and files added/removed.
hhs_region_number
->hhs
Fixes