torchsig.utils.file_handlers.hdf5ΒΆ

HDF5 File Handler for TorchSig datasets.

High-performance HDF5 storage with optimized compression and chunking.

Functions

fill_object_metadata_from_group_and_id

Fills an object's metadata from an HDF5 group.

handle_bytes_as_string

Converts bytes to string if needed.

load_signal_from_group_by_id

Loads a signal from an HDF5 group by its ID.

load_signal_from_group_by_index

Loads a signal from an HDF5 group by its index.

load_value_from_group

Loads a value from an HDF5 group.

populate_hdf5_group_with_component_signals

Populates the HDF5 group with component signals.

populate_hdf5_group_with_metadata

Makes sure this and all parent metadata objects are represented in the hdf5 group (returns true iff a new group was added).

populate_hdf5_group_with_signal

Populates an HDF5 group with a signal and optionally indexes it.

populate_hdf5_group_with_signal_data

Makes sure this and all parent metadata objects are represented in the hdf5 group (returns true iff a new group was added).

populate_hdf5_group_with_signals

Populates an HDF5 group with multiple signals and optionally indexes them.

Classes

HDF5FileHandler

HDF5FileHandler creates a reader or writer for HDF5 files.

HDF5Reader

Handles reading Signal data from HDF5 files.

HDF5Writer

Handles writing Signal data to HDF5 files with specified compression and buffering.