exorad.output.hdf5.util module

hdf5_group_to_dict(h5_group)[source]

Recursively converts an h5py group into a Python dictionary.

Parameters:

h5_group (h5py.Group) – The HDF5 group to be converted

Returns:

A dictionary representing the HDF5 group structure

Return type:

dict

load_table(input_table, k)[source]
recursively_read_dict_contents(input_dict)[source]

Will recursive read a dictionary, initializing quantities and table from a dictionary read from an hdf5 file.

Parameters:

input_dict (dict) – dictionary read from hdf5

Returns:

Dictionary we want to use

Return type:

dict

recursively_save_dict_contents_to_output(output, dic)[source]

Will recursive write a dictionary into output.

Parameters:
  • output – Group (or root) in output file to write to

  • dic (dict) – Dictionary we want to write

store_thing(output, key, item)[source]