Issue 919: Fix too many tracts issue (#922)

* Some cleanup, adding error warning to merge function

* Error handling around tract merge
This commit is contained in:
Lucas Merrill Brown 2021-11-24 16:47:57 -05:00 committed by lucasmbrown-usds
commit a4108d24c0
7 changed files with 105 additions and 70 deletions

View file

@ -34,7 +34,8 @@ class ExtractTransformLoad:
GEOID_TRACT_FIELD_NAME: str = "GEOID10_TRACT"
# TODO: investigate. Census says there are only 217,740 CBGs in the US. This might be from CBGs at different time periods.
EXPECTED_MAX_CENSUS_BLOCK_GROUPS: int = 250000
EXPECTED_MAX_CENSUS_TRACTS: int = 73076
# TODO: investigate. Census says there are only 73,057 tracts in the US. This might be from tracts at different time periods.
EXPECTED_MAX_CENSUS_TRACTS: int = 74027
def __init__(self, config_path: Path) -> None:
"""Inits the class with instance specific variables"""