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

Arguments:

f: h5py.File path: path of the dataset to create values: array to write dtype: datatype

Return type

None

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

Write integer array to hdf5

Arguments:

f: h5py.File path: path of the dataset to create values: array to write dtype: datatype

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

Write string array to hdf5

Arguments:

f: h5py.File path: path of the dataset to create strings: list of strings

Return type

None