Skip to content

Commit cf1f828

Browse files
authored
Merge pull request #567 from cmu-delphi/fix-sg-patterns-sourcename
Move safegraph patterns results to correct directory
2 parents 0542074 + fe5ed1c commit cf1f828

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

safegraph_patterns/delphi_safegraph_patterns/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
METRICS = [
2020
# signal_name, naics_code, wip
21-
('bars_visit', 722410, True),
22-
('restaurants_visit', 722511, True),
21+
('bars_visit', 722410, False),
22+
('restaurants_visit', 722511, False),
2323
]
2424
VERSIONS = [
2525
# relaese version, access dir

safegraph_patterns/run-safegraph_patterns.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ env/bin/python -m delphi_safegraph_patterns
1616
# Copy the files to the ingestion directory.
1717
echo "Copying files to the ingestion directory..."
1818
# Hack to make cp care less about missing recent files since we don't always have them.
19-
cp $(date +"receiving/%Y%m*") /common/covidcast/receiving/safegraph_patterns 2>/dev/null
20-
cp $(date --date='-1 month' +"receiving/%Y%m*") /common/covidcast/receiving/safegraph_patterns
19+
cp $(date +"receiving/%Y%m*") /common/covidcast/receiving/safegraph 2>/dev/null
20+
cp $(date --date='-1 month' +"receiving/%Y%m*") /common/covidcast/receiving/safegraph

safegraph_patterns/tests/test_run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ def test_output_files(self, run_as_module):
2727
for geo in GEO_RESOLUTIONS:
2828
for sensor in SENSORS:
2929
for metric in METRICS:
30-
fn = "_".join([date, geo, "wip", metric[0], sensor]) + ".csv"
30+
fn = "_".join([date, geo, metric[0], sensor]) + ".csv"
3131
expected_files.append(fn)
3232

3333
assert set(expected_files).issubset(set(csv_files))
3434

3535
# Test output format
3636
df = pd.read_csv(
37-
join("./receiving", "20200729_state_wip_bars_visit_num.csv")
37+
join("./receiving", "20200729_state_bars_visit_num.csv")
3838
)
3939
assert (df.columns.values == ["geo_id", "val", "se", "sample_size"]).all()

0 commit comments

Comments
 (0)