updating data source url

This commit is contained in:
lucasmbrown-usds 2022-10-20 11:48:51 -04:00
parent f467d7811a
commit f1387b7499

View file

@ -1,4 +1,5 @@
import pandas as pd import pandas as pd
from data_pipeline.config import settings
from data_pipeline.etl.base import ExtractTransformLoad from data_pipeline.etl.base import ExtractTransformLoad
from data_pipeline.etl.base import ValidGeoLevel from data_pipeline.etl.base import ValidGeoLevel
from data_pipeline.score import field_names from data_pipeline.score import field_names
@ -15,7 +16,10 @@ class EJSCREENETL(ExtractTransformLoad):
INPUT_GEOID_TRACT_FIELD_NAME: str = "ID" INPUT_GEOID_TRACT_FIELD_NAME: str = "ID"
def __init__(self): def __init__(self):
self.EJSCREEN_FTP_URL = "https://gaftp.epa.gov/EJSCREEN/2022/EJSCREEN_2022_Full_with_AS_CNMI_GU_VI_Tracts.csv.zip" self.EJSCREEN_FTP_URL = (
settings.AWS_JUSTICE40_DATASOURCES_URL
+ "/ejscreen/EJSCREEN_2022_Full_with_AS_CNMI_GU_VI_Tracts.csv.zip"
)
self.EJSCREEN_CSV = ( self.EJSCREEN_CSV = (
self.get_tmp_path() self.get_tmp_path()
/ "EJSCREEN_2022_Full_with_AS_CNMI_GU_VI_Tracts.csv" / "EJSCREEN_2022_Full_with_AS_CNMI_GU_VI_Tracts.csv"