Skip to content

Commit

Permalink
New bucket locations
Browse files Browse the repository at this point in the history
  • Loading branch information
zackAemmer committed Jun 11, 2024
1 parent 503452d commit 67e7a79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/download_realtime_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
download_new_s3_files(Path('data', 'other_feeds', f"{row['uuid']}_realtime"), 'gtfsrt-collection-others')
7 changes: 3 additions & 4 deletions scripts/download_s3_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
# standardfeeds.extract_operator_gtfs(Path("data", "nwy_static"), Path("data", "atb_static"), area)

0 comments on commit 67e7a79

Please sign in to comment.