mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
fixing eamlis expected missing states
This commit is contained in:
parent
6e0f046d27
commit
ce4d71828b
3 changed files with 21 additions and 1 deletions
|
@ -320,6 +320,7 @@ class ExtractTransformLoad:
|
|||
puerto_rico_expected=self.PUERTO_RICO_EXPECTED_IN_DATA,
|
||||
island_areas_expected=self.ISLAND_AREAS_EXPECTED_IN_DATA,
|
||||
additional_fips_codes_not_expected=self.EXPECTED_MISSING_STATES,
|
||||
dataset_name=self.NAME,
|
||||
)
|
||||
|
||||
def load(self, float_format=None) -> None:
|
||||
|
|
|
@ -379,7 +379,9 @@ def compare_to_list_of_expected_state_fips_codes(
|
|||
additional_fips_codes_not_expected
|
||||
)
|
||||
|
||||
dataset_name_phrase = f" for dataset `{dataset_name}`" if dataset_name else ""
|
||||
dataset_name_phrase = (
|
||||
f" for dataset `{dataset_name}`" if dataset_name is not None else ""
|
||||
)
|
||||
|
||||
if expected_states_set != actual_state_fips_codes_set:
|
||||
raise ValueError(
|
||||
|
|
|
@ -20,6 +20,23 @@ class AbandonedMineETL(ExtractTransformLoad):
|
|||
GEO_LEVEL = ValidGeoLevel.CENSUS_TRACT
|
||||
AML_BOOLEAN: str
|
||||
|
||||
PUERTO_RICO_EXPECTED_IN_DATA = False
|
||||
EXPECTED_MISSING_STATES = [
|
||||
"10",
|
||||
"11",
|
||||
"12",
|
||||
"15",
|
||||
"23",
|
||||
"27",
|
||||
"31",
|
||||
"33",
|
||||
"34",
|
||||
"36",
|
||||
"45",
|
||||
"50",
|
||||
"55",
|
||||
]
|
||||
|
||||
# Define these for easy code completion
|
||||
def __init__(self):
|
||||
self.SOURCE_URL = (
|
||||
|
|
Loading…
Add table
Reference in a new issue