bilby.core.result.result_file_name

bilby.core.result.result_file_name(outdir, label, extension='json', gzip=False)[source]

Returns the standard filename used for a result file

Parameters:
outdir: str

Name of the output directory

label: str

Naming scheme of the output file

extension: str, optional

Whether to save as hdf5, json, or pickle

gzip: bool, optional

Set to True to append .gz to the extension for saving in gzipped format

Returns:
str: File name of the output file