Allow pickle for autosave

This commit is contained in:
sebastiankloth 2022-06-08 14:28:09 +02:00
parent 39bccf8792
commit b2ce71cbdd

View File

@ -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