From 67e7a79ae2c221ccc9599c7feb5eb66039667b74 Mon Sep 17 00:00:00 2001 From: zackAemmer Date: Tue, 11 Jun 2024 12:12:12 -0700 Subject: [PATCH] New bucket locations --- scripts/download_realtime_data.py | 2 +- scripts/download_s3_data.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/download_realtime_data.py b/scripts/download_realtime_data.py index 064e450..13c2bec 100755 --- a/scripts/download_realtime_data.py +++ b/scripts/download_realtime_data.py @@ -33,4 +33,4 @@ def download_new_s3_files(data_folder, bucket_name): print(f"Downloading new files...") cleaned_sources = pd.read_csv(Path('data', 'cleaned_sources.csv')) for i, row in cleaned_sources.iterrows(): - download_new_s3_files(Path('data', 'other_feeds', f"{row['uuid']}_realtime"), 'gtfs-collection-others') \ No newline at end of file + download_new_s3_files(Path('data', 'other_feeds', f"{row['uuid']}_realtime"), 'gtfsrt-collection-others') \ No newline at end of file diff --git a/scripts/download_s3_data.py b/scripts/download_s3_data.py index 97c1695..edb22cf 100755 --- a/scripts/download_s3_data.py +++ b/scripts/download_s3_data.py @@ -36,9 +36,8 @@ def download_new_s3_files(data_folder, bucket_name): if __name__ == "__main__": print(f"Downloading new files...") - download_new_s3_files("./data/kcm_realtime/", "gtfs-collection-kcm") - # download_new_s3_files("./data/nwy_realtime/", "gtfs-collection-nwy") + download_new_s3_files("./data/kcm_realtime/", "gtfsrt-collection-kcm") + # download_new_s3_files("./data/atb_realtime/", "gtfsrt-collection-atb") # print(f"Extracting operators from downloaded realtime and static files...") # area = spatial.make_polygon((10.01266280018279,63.241039487344544,10.604534521465991,63.475046970112395)) - # standardfeeds.extract_operator_gtfs(Path("data", "nwy_static"), Path("data", "atb_static"), area) - # standardfeeds.extract_operator("./data/nwy_realtime/", "./data/atb_realtime/", "operator_id", "ATB") \ No newline at end of file + # standardfeeds.extract_operator_gtfs(Path("data", "nwy_static"), Path("data", "atb_static"), area) \ No newline at end of file