from_group#

classmethod caput.memdata.MemDiskGroup.from_group(data_group=None, detect_subclass=True)[source]#

Create data object from a given group.

This wraps the given group object, optionally returning the correct subclass. This does not call __init__ on the subclass when this happens.

Parameters:
data_groupFileOrGroupLike

h5py-like data containerto wrap.

detect_subclassbool

If data_group is specified, whether to inspect for a ‘__memh5_subclass’ attribute which specifies a subclass to return. Default is True.

Returns:
groupMemDiskGroup

MemDiskGroup instance wrapping data_group.