h5.archive_basic_layer.HDFArchiveGroupBasicLayer

class h5.archive_basic_layer.HDFArchiveGroupBasicLayer(parent, subpath)[source]

Low-level group operations backing HDFArchiveGroup.

Wraps a single HDF5 group handle from the compiled h5._h5py extension and exposes the primitive operations (querying, reading/writing datasets and attributes, creating groups and soft links) that the high-level dict-like interface is built on.

This is the base class of HDFArchiveGroup. Users should not instantiate it directly.

Parameters:
parentHDFArchive or HDFArchiveGroup

Object whose _group handle and options are used as the base.

subpathstr

Name of the subgroup to open; if empty, parent’s group is reused.

Methods

create_group(key)

Create a new empty subgroup.

create_softlink(target_key, key[, ...])

Create an HDF5 soft link key pointing at target_key.

is_data(p)

Return whether p names a dataset (leaf) of this group.

is_group(p)

Return whether p names a subgroup of this group.

keys()

Return the names of the entries in this group.

write_attr(key, val)

Write an HDF5 attribute on this group.