write_output#

static caput.pipeline.extensions.GroupIOMixin.write_output(filename: str, output: caput.memdata._memh5.GroupLike, file_format: caput.memdata.fileformats.FileFormat | None = None, **kwargs: dict) None[source]#

Method for writing Group output.

Parameters:
filenameos.PathLike

File name

outputMemDiskGroup

output to be written. If this is a h5py.Group (which include hdf5.File objects) the buffer is flushed if filename points to the same file and a copy is made otherwise.

file_formatFileFormat

File format to use. If this is not specified, the file format is guessed based on the type of output or the filename. If guessing is not successful, HDF5 is used.

**kwargsAny

Arbitrary keyword arguments.