Skip to content

Commit

Permalink
refactor of nested source vars
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandersimoes committed Dec 24, 2015
1 parent a89fd84 commit acae39e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 59 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
global:
concat_border: "sumlevel"
name: acs
# concat_border: "sumlevel"
name: acs_<estimate>yr
use_schema: True
source: "data/acs/<year>_<tbl>_<column>_<sumlevel>.json"
output: "data/output/acs/<year>/<tbl>/<column>/<sumlevel>"
source: "data/acs_<estimate>yr/<year>_<sumlevel>_<tbl>_<column>.json"
output: "data/output/acs_<estimate>yr/<year>_<sumlevel>_<tbl>_<column>"
filetype: json
source_vars_nesting:
estimate:
sumlevel:
year:
- tbl
- column

source_vars:
year: [2013]
estimate: [1, 5]
year: [2013, 2014]
tbl: ["C24010"]
column:
start: 3
Expand All @@ -16,7 +23,7 @@ global:
zfill: 3
sumlevel:
- us
# - state
- state
- county
- place
- "metropolitan+statistical+area/micropolitan+statistical+area"
Expand All @@ -30,7 +37,7 @@ global:
zfill: 3
preprocess:
func: "src.plugins.preprocess.acs_preprocess"
web_paths: "http://api.census.gov/data/<year>/acs5?get=GEOID,<tbl>_<column>E,<tbl>_<column>M&for=<sumlevel>&key=$ACS_KEY"
web_paths: "http://api.census.gov/data/<year>/acs<estimate>?get=GEOID,<tbl>_<column>E,<tbl>_<column>M&for=<sumlevel>&key=$ACS_KEY"

import_to_db: True
db_settings:
Expand Down
52 changes: 0 additions & 52 deletions acs/ygo_wage.yaml

This file was deleted.

0 comments on commit acae39e

Please sign in to comment.