from_group#

classmethod caput.memdata.MemGroup.from_group(group)[source]#

Create a new instance by deep copying an existing group.

Agnostic as to whether the group to be copied is a MemGroup or an h5py.Group (which includes h5py.File and zarr.File objects).

Parameters:
groupFileOrGroupLike

Group to copy from, or filename to load from.

Returns:
groupMemGroup

A new MemGroup instance.

Raises:
RuntimeError

If the input group is not a supported type.