Commit 70f2d978 authored by Valentin Emiya's avatar Valentin Emiya

Merge branch 'fix_allow_pickle' into 'master'

fixed bug in load_results for numpy>=1.16

See merge request !1
parents dc2e60e9 0cd30862
Pipeline #2783 passed with stages
in 1 minute and 8 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