From 0cd308621f57dca51bb6ca60f27a8d52187abeaf Mon Sep 17 00:00:00 2001
From: "valentin.emiya" <valentin.emiya@lif.univ-mrs.fr>
Date: Wed, 10 Jul 2019 14:45:03 +0200
Subject: [PATCH] fixed bug in load_results for numpy>=1.16

---
 yafe/base.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/yafe/base.py b/yafe/base.py
index e4c82cc..368a67e 100644
--- a/yafe/base.py
+++ b/yafe/base.py
@@ -1069,7 +1069,8 @@ class Experiment:
             If no collected results file can be found.
         """
         if (self.xp_path / 'results.npz').exists():
-            data = np.load(str(self.xp_path / 'results.npz'))
+            data = np.load(str(self.xp_path / 'results.npz'),
+                           allow_pickle=True)
             if array_type == 'numpy':
                 return (data['results'],
                         data['axes_labels'],
-- 
GitLab