Commit 6e879ff1 authored by Daniel Boeckenhoff's avatar Daniel Boeckenhoff
Browse files

allow_pickle=True in np.load

parent b1fabb27
......@@ -359,7 +359,9 @@ class AbstractNdarray(np.ndarray):
Factory method
Given a path to a npz file, construct the object
np_file = np.load(path, **load_kwargs)
# TODO: think about allow_pickle, wheter it really should be True or
# wheter we could avoid pickling
np_file = np.load(path, allow_pickle=True, **load_kwargs)
return cls._from_dict(**np_file)
def _as_dict(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment