redback.result.read_in_result
- redback.result.read_in_result(filename: Optional[str] = None, outdir: Optional[str] = None, label: Optional[str] = None, extension: str = 'json', gzip: bool = False) RedbackResult [source]
- Parameters:
filename (str, optional) – Filename with entire path of result to open.
outdir (str, optional) – If filename is not given, directory of the result.
label (str, optional) – If filename is not given, label of the result.
extension (str, optional) – If filename is not given, filename extension. Must be in (‘json’, ‘hdf5’, ‘h5’, ‘pkl’, ‘pickle’, ‘gz’). (Default value = ‘json’)
gzip (bool, optional) – If the file is compressed with gzip. Default is False.
- Returns:
The loaded redback result.
- Return type: