Skip to content

Commit b9a788f

Browse files
jingjtangJingjing Tang
authored and
Jingjing Tang
committed
uncommented code for pulling raw data
1 parent 870fd20 commit b9a788f

File tree

1 file changed

+7
-7
lines changed
  • safegraph_patterns/delphi_safegraph_patterns

1 file changed

+7
-7
lines changed

safegraph_patterns/delphi_safegraph_patterns/run.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ def run_module():
6363
# Why call subprocess rather than using a native Python client, e.g. boto3?
6464
# Because boto3 does not have a simple rsync-like call that can perform
6565
# the following behavior elegantly.
66-
# subprocess.run(
67-
# f'aws s3 sync s3://sg-c19-response/{ver[1]}/ '
68-
# f'{raw_data_dir}/{ver[1]}/ --endpoint {aws_endpoint}',
69-
# env=env_vars,
70-
# shell=True,
71-
# )
66+
subprocess.run(
67+
f'aws s3 sync s3://sg-c19-response/{ver[1]}/ '
68+
f'{raw_data_dir}/{ver[1]}/ --endpoint {aws_endpoint}',
69+
env=env_vars,
70+
shell=True,
71+
)
7272

7373
brand_df = pd.read_csv(
7474
join(static_file_dir, f"brand_info/brand_info_{ver[0]}.csv")
@@ -86,4 +86,4 @@ def run_module():
8686

8787
with mp.Pool(n_core) as pool:
8888
pool.map(process_file, files)
89-
89+

0 commit comments

Comments
 (0)