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:
StorageBase
storage that stores data in an HDF file
- Parameters:
file_or_path (str or
Path
orStore
) – File path to the file/folder or azarr
Storemode (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
- mode: AccessMode
access mode
- Type: