Commit 747e2243 authored by Matthew David Pitkin's avatar Matthew David Pitkin Committed by Gregory Ashton

Allow writing/reading of Grid results object

parent e0a0e0a9
This diff is collapsed.
......@@ -43,9 +43,9 @@ def result_file_name(outdir, label, extension='json', gzip=False):
"""
if extension in ['json', 'hdf5']:
if extension == 'json' and gzip:
return '{}/{}_result.{}.gz'.format(outdir, label, extension)
return os.path.join(outdir, '{}_result.{}.gz'.format(label, extension))
else:
return '{}/{}_result.{}'.format(outdir, label, extension)
return os.path.join(outdir, '{}_result.{}'.format(label, extension))
else:
raise ValueError("Extension type {} not understood".format(extension))
......
This diff is collapsed.
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