Skip to content

Commit

Permalink
Round to 8 digits before hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisVincent committed Mar 13, 2023
1 parent 24dcd15 commit 16e1079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stimupy/utils/export.py
Expand Up @@ -8,7 +8,7 @@
def arrs_to_checksum(stim, keys=["img", "mask"]):
# Hash (md5) values, and save only the hex
for key in keys:
stim[key] = md5(np.ascontiguousarray(stim[key])).hexdigest()
stim[key] = md5(np.ascontiguousarray(stim[key].round(8))).hexdigest()

return stim

Expand Down

0 comments on commit 16e1079

Please sign in to comment.