modelarrayio.storage.h5_storage

HDF5 storage utilities.

Functions

compute_chunk_shape_full_subjects(n_files, ...)

Compute a chunk shape for a full subject.

create_empty_scalar_matrix_dataset(h5file, ...)

Create an empty scalar matrix dataset in an HDF5 file.

create_scalar_matrix_dataset(h5file, ...[, ...])

Create a scalar matrix dataset in an HDF5 file.

resolve_compression(compression, ...)

Resolve a compression method to a supported compression method.

resolve_dtype(storage_dtype)

Resolve a storage dtype to a supported NumPy floating type.

write_column_names(h5_file, scalar, sources)

Write column names to an HDF5 file.

write_rows_in_column_stripes(dset, rows)

Fill a 2D HDF5 dataset by buffering column-aligned stripes to minimize chunk recompression, using about one chunk's worth of memory.