Commit 0cd30862 authored by valentin.emiya's avatar valentin.emiya

fixed bug in load_results for numpy>=1.16

parent dc2e60e9
Pipeline #2782 passed with stage
in 27 seconds
......@@ -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'],
......
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