From 16e10791985e26ed9c93c3ea343fca9596b65fe0 Mon Sep 17 00:00:00 2001 From: Joris Vincent Date: Mon, 13 Mar 2023 07:43:08 +0100 Subject: [PATCH] Round to 8 digits before hashing --- stimupy/utils/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stimupy/utils/export.py b/stimupy/utils/export.py index dc405524..524775ed 100644 --- a/stimupy/utils/export.py +++ b/stimupy/utils/export.py @@ -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