diff --git a/tfields/core.py b/tfields/core.py index 47f7c5ff39256048bc6951e83be16265eec56428..68619bc7b40b088a10d8bb3d1f17cc2d7d742839 100644 --- a/tfields/core.py +++ b/tfields/core.py @@ -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):