Skip to content

Commit

Permalink
dev(SciptData): adjust func names
Browse files Browse the repository at this point in the history
  • Loading branch information
lomasson committed Sep 25, 2024
1 parent e6e1d9c commit 5170ee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/data/generate_timestamp_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def create_index(folder_path):
return index


def list_files_in_gcs(bucket_name: str, prefix: str):
def download_files_in_gcs(bucket_name: str, prefix: str):
"""List all files in a GCS bucket under a specific folder (prefix)."""
client = storage.Client.create_anonymous_client()
bucket = client.bucket(bucket_name)
Expand All @@ -38,7 +38,7 @@ def list_files_in_gcs(bucket_name: str, prefix: str):
if __name__ == "__main__":
bucket_name = "shinigami-consensus"
folder_prefix = "previous_outputs"
file_names = list_files_in_gcs(bucket_name, folder_prefix)
file_names = download_files_in_gcs(bucket_name, folder_prefix)

index = create_index(file_names)
with open("timestamp_data.json", "w") as outfile:
Expand Down

0 comments on commit 5170ee7

Please sign in to comment.