From 72a395e3807720548d6404fe0c162ce1b8500ecb Mon Sep 17 00:00:00 2001 From: Scott Gigante Date: Tue, 12 Apr 2022 15:31:31 -0400 Subject: [PATCH] Use pickle.HIGHEST_PROTOCOL Closes #6 --- multiscale_phate/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multiscale_phate/utils.py b/multiscale_phate/utils.py index 63b013e..d46f73b 100644 --- a/multiscale_phate/utils.py +++ b/multiscale_phate/utils.py @@ -15,4 +15,4 @@ def hash_object(X): Description of returned object. """ - return hash(pickle.dumps(X)) + return hash(pickle.dumps(X, protocol=pickle.HIGHEST_PROTOCOL))