Skip to content

Commit

Permalink
FIX checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
tomMoral committed Dec 17, 2024
1 parent 77099ea commit bb0eec8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions download_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ def hash_folder(folder_path):

# Recursively scan the folder and compute a checksum
checksum = 1
for f in sorted(folder.rglob('*')):
if f.is_file():
checksum = adler32(f.read_bytes(), checksum)
else:
checksum = adler32(f.name.encode(), checksum)
for f in sorted(folder.rglob('*.h5')):
checksum = adler32(f.read_bytes(), checksum)

return checksum

Expand Down

0 comments on commit bb0eec8

Please sign in to comment.