to_disk#

caput.memdata.MemDiskGroup.to_disk(filename, file_format=fileformats.HDF5, **kwargs)[source]#

Return a version of this data that lives on disk.

Cannot run if the underlying data is distributed. Use save() instead.

Parameters:
filenamestr

File name.

file_formatFileFormat, optional

File format to use. Default HDF5.

**kwargsAny

Keyword arguments passed through to the file creating, e.g. mode.

Returns:
Instance of this data object that is written to disk.
Raises:
NotImplementedError

If the underlying data is distributed.