save#

caput.memdata.MemDiskGroup.save(filename, convert_attribute_strings=None, convert_dataset_strings=None, file_format=fileformats.HDF5, **kwargs)[source]#

Save data to hdf5/zarr file.

Parameters:
filenamestr

Name of the file to save into.

convert_attribute_stringsbool, optional

Try and convert attribute string types to a format HDF5 understands. If not specified, look up the name as a class attribute to find a default, and otherwise use True.

convert_dataset_stringsbool, optional

Try and convert dataset string types to bytestrings before saving to HDF5. If not specified, look up the name as a class attribute to find a default, and otherwise use False.

file_formatFileFormat

File format to use. Default HDF5.

**kwargsAny

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