Skip to content

Commit

Permalink
add debug statment in download_data
Browse files Browse the repository at this point in the history
  • Loading branch information
alchem0x2A committed Dec 2, 2024
1 parent f7f258b commit efa7e6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sparc/download_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ def checksum_all(psp_dir=psp_dir, extension="*.psp8"):
# Use sorted to make sure file order is correct
for filename in sorted(psp_dir.glob(extension)):
# Open the file in binary mode and update the group checksum
print(f"Checking {filename}")
with open(filename, "r") as f:
f_checker = hashlib.md5()
content = f.read().encode("utf8")
f_checker.update(content)
checker.update(f_checker.hexdigest().encode("ascii"))
final_checksum = checker.hexdigest()
print(f"Final checksum is {final_checksum}")
return final_checksum


Expand Down

0 comments on commit efa7e6c

Please sign in to comment.