list_nested_keys#
- ptyrad.utils.common.list_nested_keys(hobj, delimiter='.', prefix='')[source]#
Recursively list all keys in an HDF5 file, HDF5 group, or dict, including hierarchical paths.
- Parameters:
hobj (h5py.File, h5py.Group, or dict) – The hierarchical object to traverse.
delimiter (str) – The string used to seperate different parts of the displayed key path
prefix (str) – The current hierarchical path (used for recursion).
- Returns:
A list of all keys with their hierarchical paths.
- Return type:
list[str]