to_hdf5#

caput.memdata.MemGroup.to_hdf5(filename, mode='w', hints=True, convert_attribute_strings=True, convert_dataset_strings=False, **kwargs)[source]#

Replicate object on disk in an hdf5 file.

Any keyword arguments are passed on to the constructor for h5py.File.

Parameters:
filenamepath_like

File to save into.

modestr

Mode in which to open file. Default is “w”.

hintsbool

Whether to write hints into the file that described whether datasets are distributed, or not. Default is True.

convert_attribute_stringsbool

Try and convert attribute string types to a unicode type that HDF5 understands. Default is True.

convert_dataset_stringsbool

Try and convert dataset string types to bytestrings. Default is False.

**kwargsAny

Arbitrary keyword arguments.