Skip to content
Snippets Groups Projects

Fix pickle

Merged Moritz Huebner requested to merge fix_pickle into master
All threads resolved!
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -43,6 +43,8 @@ def result_file_name(outdir, label, extension='json', gzip=False):
=======
str: File name of the output file
"""
if extension == 'pickle':
extension = 'pkl'
if extension in ['json', 'hdf5', 'pkl']:
if extension == 'json' and gzip:
return os.path.join(outdir, '{}_result.{}.gz'.format(label, extension))
@@ -735,7 +737,7 @@ class Result(object):
default=False
outdir: str, optional
Path to the outdir. Default is the one stored in the result object.
extension: str, optional {json, hdf5, pickle, True}
extension: str, optional {json, hdf5, pkl, pickle, True}
Determines the method to use to store the data (if True defaults
to json)
gzip: bool, optional
Loading