_BaseGroup#

class caput.memdata._BaseGroup(storage_root=None, name='')[source]#

Bases: _MemObjMixin, collections.abc.Mapping

Implement the majority of the Group interface.

Subclasses must setup the underlying storage in thier constructors, as well as implement create_group and create_dataset.

property attrs[source]#

Attributes attached to this object.

Returns:
attributesMemAttrs

Attributes container.

property comm[source]#

Reference to the MPI communicator.

property distributed[source]#

Whether this group supports distributed datasets.

Methods#

__delitem__(name)

Delete item from group.

__getitem__(name)

Retrieve an object.

require_dataset(name, shape, dtype, **kwargs)

Require a dataset to exist, create if it doesn't.

require_group(name)

Require a group to exist, create if it doesn't.