Skip to content
Snippets Groups Projects
Commit 0cd30862 authored by valentin.emiya's avatar valentin.emiya
Browse files

fixed bug in load_results for numpy>=1.16

parent dc2e60e9
No related branches found
No related tags found
1 merge request!1fixed bug in load_results for numpy>=1.16
Pipeline #2782 passed
......@@ -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'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment