From b2ce71cbdd27855ffa6a78a2eee315f9e46172c7 Mon Sep 17 00:00:00 2001 From: sebastiankloth Date: Wed, 8 Jun 2022 14:28:09 +0200 Subject: [PATCH] Allow pickle for autosave --- mdevaluate/autosave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdevaluate/autosave.py b/mdevaluate/autosave.py index aa57255..6bb0ccc 100644 --- a/mdevaluate/autosave.py +++ b/mdevaluate/autosave.py @@ -104,7 +104,7 @@ def verify_file(filename, checksum): """Verify if the file matches the function call.""" file_checksum = 0 if os.path.exists(filename): - data = np.load(filename) + data = np.load(filename, allow_pickle=True) if 'checksum' in data: file_checksum = data['checksum'] return file_checksum == checksum