mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-28 14:11:17 -07:00
S3 Parallel Upload and Deletions (#1410)
* installation step * trigger action * installing to home dir * dry-run * pyenv * py 2.8 * trying s4cmd * removing pyenv * poetry s4cmd * num-threads * public read * poetry cache * s4cmd all around * poetry cache * poetry cache * install poetry packages * poetry echo * let's do this * s4cmd install on run * s4cmd * ad aws back * add aws back * testing census api key and poetry caching * census api key * census api * census api key #3 * 250 * poetry update * poetry change * check census api key * force flag * update score gen and tilefy; remove cached fips * small gdal update * invalidation * missing cache ids
This commit is contained in:
parent
e31a4f3b94
commit
7b05ee9c76
8 changed files with 307 additions and 197 deletions
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
from pathlib import Path
|
||||
from typing import List
|
||||
import censusdata
|
||||
|
@ -33,8 +34,11 @@ def retrieve_census_acs_data(
|
|||
f"Skipping download for state/territory with FIPS code {fips}"
|
||||
)
|
||||
else:
|
||||
census_api_key = ""
|
||||
if os.environ.get("CENSUS_API_KEY"):
|
||||
census_api_key = "with API key"
|
||||
logger.info(
|
||||
f"Downloading data for state/territory with FIPS code {fips}"
|
||||
f"Downloading data for state/territory with FIPS code {fips} {census_api_key}"
|
||||
)
|
||||
|
||||
try:
|
||||
|
@ -45,6 +49,7 @@ def retrieve_census_acs_data(
|
|||
[("state", fips), ("county", "*"), ("tract", "*")]
|
||||
),
|
||||
var=variables,
|
||||
key=os.environ.get("CENSUS_API_KEY"),
|
||||
)
|
||||
dfs.append(response)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue