Skip to content

Commit

Permalink
make s3fs connection anonymous
Browse files Browse the repository at this point in the history
  • Loading branch information
elray1 committed Nov 4, 2024
1 parent 46c62f5 commit 811002e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iddata/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def load_hhs(self, rates=True, drop_pandemic_seasons=True, as_of=None):
else:
# find the largest stored file dated on or before the as_of date
as_of_file_path = f"influenza-hhs/hhs-{str(as_of)}.csv"
glob_results = s3fs.S3FileSystem(anon=False) \
glob_results = s3fs.S3FileSystem(anon=True) \
.glob("infectious-disease-data/data-raw/influenza-hhs/hhs-????-??-??.csv")
all_file_paths = sorted([f[len("infectious-disease-data/data-raw/"):] for f in glob_results])
all_file_paths = [f for f in all_file_paths if f <= as_of_file_path]
Expand Down

0 comments on commit 811002e

Please sign in to comment.