Skip to content

Commit

Permalink
validation params for safegraph
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsmob committed Mar 19, 2021
1 parent 5304656 commit db86563
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 4 deletions.
28 changes: 26 additions & 2 deletions ansible/templates/safegraph-params-prod.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,31 @@
"sync": true,
"wip_signal" : []
},
"archive": {
"cache_dir": "./cache"
"validation": {
"common": {
"data_source": "safegraph",
"span_length": 14,
"end_date": "today",
"suppressed_errors": [
{"signal": "bars_visit_num"},
{"signal": "bars_visit_prop"},
{"signal": "restaurants_visit_num"},
{"signal": "restaurants_visit_prop"}
]
},
"static": {
"minimum_sample_size": 100,
"missing_se_allowed": false,
"missing_sample_size_allowed": false
},
"dynamic": {
"ref_window_size": 7,
"smoothed_signals": [
"completely_home_prop_7dav",
"full_time_work_prop_7dav",
"part_time_work_prop_7dav",
"median_home_dwell_time_7dav"
]
}
}
}
28 changes: 26 additions & 2 deletions safegraph/params.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,31 @@
"part_time_work_prop_7dav",
"full_time_work_prop_7dav"]
},
"archive": {
"cache_dir": "./cache"
"validation": {
"common": {
"data_source": "safegraph",
"span_length": 14,
"end_date": "today",
"suppressed_errors": [
{"signal": "bars_visit_num"},
{"signal": "bars_visit_prop"},
{"signal": "restaurants_visit_num"},
{"signal": "restaurants_visit_prop"}
]
},
"static": {
"minimum_sample_size": 100,
"missing_se_allowed": false,
"missing_sample_size_allowed": false
},
"dynamic": {
"ref_window_size": 7,
"smoothed_signals": [
"completely_home_prop_7dav",
"full_time_work_prop_7dav",
"part_time_work_prop_7dav",
"median_home_dwell_time_7dav"
]
}
}
}
1 change: 1 addition & 0 deletions safegraph/run-safegraph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rm -f ./receiving/*
# Run the indicator code.
echo "Running the indicator..."
env/bin/python -m delphi_safegraph
env/bin/python -m delphi_utils.validator

# Copy the files to the ingestion directory.
echo "Copying files to the ingestion directory..."
Expand Down

0 comments on commit db86563

Please sign in to comment.