Skip to content

Commit ddd59bb

Browse files
authored
Merge pull request #941 from sgsmob/safegraph
Preliminary validation params for safegraph
2 parents 7a4018b + db86563 commit ddd59bb

File tree

3 files changed

+53
-4
lines changed

3 files changed

+53
-4
lines changed

ansible/templates/safegraph-params-prod.json.j2

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,31 @@
1414
"sync": true,
1515
"wip_signal" : []
1616
},
17-
"archive": {
18-
"cache_dir": "./cache"
17+
"validation": {
18+
"common": {
19+
"data_source": "safegraph",
20+
"span_length": 14,
21+
"end_date": "today",
22+
"suppressed_errors": [
23+
{"signal": "bars_visit_num"},
24+
{"signal": "bars_visit_prop"},
25+
{"signal": "restaurants_visit_num"},
26+
{"signal": "restaurants_visit_prop"}
27+
]
28+
},
29+
"static": {
30+
"minimum_sample_size": 100,
31+
"missing_se_allowed": false,
32+
"missing_sample_size_allowed": false
33+
},
34+
"dynamic": {
35+
"ref_window_size": 7,
36+
"smoothed_signals": [
37+
"completely_home_prop_7dav",
38+
"full_time_work_prop_7dav",
39+
"part_time_work_prop_7dav",
40+
"median_home_dwell_time_7dav"
41+
]
42+
}
1943
}
2044
}

safegraph/params.json.template

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,31 @@
1717
"part_time_work_prop_7dav",
1818
"full_time_work_prop_7dav"]
1919
},
20-
"archive": {
21-
"cache_dir": "./cache"
20+
"validation": {
21+
"common": {
22+
"data_source": "safegraph",
23+
"span_length": 14,
24+
"end_date": "today",
25+
"suppressed_errors": [
26+
{"signal": "bars_visit_num"},
27+
{"signal": "bars_visit_prop"},
28+
{"signal": "restaurants_visit_num"},
29+
{"signal": "restaurants_visit_prop"}
30+
]
31+
},
32+
"static": {
33+
"minimum_sample_size": 100,
34+
"missing_se_allowed": false,
35+
"missing_sample_size_allowed": false
36+
},
37+
"dynamic": {
38+
"ref_window_size": 7,
39+
"smoothed_signals": [
40+
"completely_home_prop_7dav",
41+
"full_time_work_prop_7dav",
42+
"part_time_work_prop_7dav",
43+
"median_home_dwell_time_7dav"
44+
]
45+
}
2246
}
2347
}

safegraph/run-safegraph.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ rm -f ./receiving/*
1212
# Run the indicator code.
1313
echo "Running the indicator..."
1414
env/bin/python -m delphi_safegraph
15+
env/bin/python -m delphi_utils.validator
1516

1617
# Copy the files to the ingestion directory.
1718
echo "Copying files to the ingestion directory..."

0 commit comments

Comments
 (0)