storage#

h5py ‘extensions’.

Functions

create_extendible(file, key, dtype[, ndim])

Create extendible dataset.

dset_extend1d(file, key, i, value)

Dump and auto-extend a 1d extendible dataset.

dset_extendible1d(file, key, dtype, value, ...)

Create extendible 1d dataset and store the first value.

dump_overwrite(file, key, data, **kwargs)

Dump or overwrite data.

dump_with_atttrs(file, key, data, **kwargs)

Write dataset and an optional number of attributes.

Details

depinning_creep_2024.storage.create_extendible(file: File, key: str, dtype, ndim: int = 1, **kwargs) Dataset#

Create extendible dataset.

Parameters
  • file – Opened HDF5 file.

  • key – Path to the dataset.

  • dtype – Data-type to use.

  • ndim – Number of dimensions.

  • kwargs – An optional dictionary with attributes.

depinning_creep_2024.storage.dset_extend1d(file: File, key: str, i: int, value: T)#

Dump and auto-extend a 1d extendible dataset.

Parameters
  • file – Opened HDF5 file.

  • key – Path to the dataset.

  • i – Index to which to write.

  • value – Value to write at index i.

depinning_creep_2024.storage.dset_extendible1d(file: File, key: str, dtype, value: T, **kwargs) Dataset#

Create extendible 1d dataset and store the first value.

Parameters
  • file – Opened HDF5 file.

  • key – Path to the dataset.

  • dtype – Data-type to use.

  • value – Value to write at index 0.

  • kwargs – An optional dictionary with attributes.

depinning_creep_2024.storage.dump_overwrite(file: File, key: str, data: T, **kwargs)#

Dump or overwrite data.

Parameters
  • file – Opened HDF5 file.

  • key – Path to the dataset.

  • data – Data to write.

  • kwargs – An optional dictionary with attributes.

depinning_creep_2024.storage.dump_with_atttrs(file: File, key: str, data: T, **kwargs)#

Write dataset and an optional number of attributes. The attributes are stored based on the name that is used for the option.

Parameters
  • file – Opened HDF5 file.

  • key – Path to the dataset.

  • data – Data to write.