parpe.hdf5

Convenience functions for working with HDF5 files

Functions

write_float_array(f, path, values[, dtype])

Write float array to hdf5

write_int_array(f, path, values[, dtype])

Write integer array to hdf5

write_string_array(f, path, strings)

Write string array to hdf5

Functions

parpe.hdf5.write_float_array(f, path, values, dtype='f8')[source]

Write float array to hdf5

Parameters:
  • f (Group) – h5py.File

  • path (str) – path of the dataset to create

  • values (Collection[Number]) – array to write

  • dtype – datatype

Return type:

None

parpe.hdf5.write_int_array(f, path, values, dtype='<i4')[source]

Write integer array to hdf5

Parameters:
  • f (Group) – h5py.File

  • path (str) – path of the dataset to create

  • values (Collection[int]) – array to write

  • dtype – datatype

parpe.hdf5.write_string_array(f, path, strings)[source]

Write string array to hdf5

Parameters:
  • f (Group) – h5py.File

  • path (str) – path of the dataset to create

  • strings (Collection) – list of strings

Return type:

None