from_hdf5#

classmethod caput.memdata.MemGroup.from_hdf5(filename, distributed=False, hints=True, comm=None, selections={}, convert_dataset_strings=False, convert_attribute_strings=True, **kwargs)[source]#

Create a new instance by copying from an hdf5 group.

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

Parameters:
filenamepath_like

Name of file to load.

distributedbool

Whether to load file in distributed mode.

hintsbool

If in distributed mode use hints to determine whether datasets are distributed or not.

commMPI.Comm | None

MPI communicator to distributed over. If None use MPI.COMM_WORLD.

selectionsdict

Map dataset names to axis selections as valid numpy indexes.

convert_attribute_stringsbool

Try and convert attribute string types to unicode. Default is True.

convert_dataset_stringsbool

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

**kwargsAny

Arbitrary keyword arguments.

Returns:
groupMemGroup

Root group of loaded file.