modelrunner.storage.backend.hdf module
Defines a class storing data on the file system using the hierarchical data format (hdf)
Requires the optional h5py module.
- class HDFStorage(file_or_path, *, mode='read', compression=True)[source]
Bases:
StorageBaseStorage that stores data in an HDF file.
- Parameters:
file_or_path (str or
PathorStore) – File path to the file/folder or azarrStoremode (str or
AccessMode) – The file mode with which the storage is accessed. Determines allowed operations.compression (bool) – Whether to store the data in compressed form. Automatically enabled chunked storage.
- close()[source]
Closes the storage, potentially writing data to a persistent place.
- Return type:
None