Skip to content
Snippets Groups Projects
Commit 70f2d978 authored by Valentin Emiya's avatar Valentin Emiya
Browse files

Merge branch 'fix_allow_pickle' into 'master'

fixed bug in load_results for numpy>=1.16

See merge request !1
parents dc2e60e9 0cd30862
Branches
Tags
1 merge request!1fixed bug in load_results for numpy>=1.16
Pipeline #2783 passed
...@@ -1069,7 +1069,8 @@ class Experiment: ...@@ -1069,7 +1069,8 @@ class Experiment:
If no collected results file can be found. If no collected results file can be found.
""" """
if (self.xp_path / 'results.npz').exists(): 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': if array_type == 'numpy':
return (data['results'], return (data['results'],
data['axes_labels'], data['axes_labels'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment