diffractem.io module¶
- diffractem.io.dict_to_h5(grp, data, exclude=())[source]¶
Write dictionary into HDF group (or file) object :param grp: HDF group or file object :param data: dictionary to be written into HDF5 :param exclude: dataset or group names to be excluded :return:
- diffractem.io.h5_to_dict(grp, exclude=('data', 'image'), max_len=100)[source]¶
Get dictionary from HDF group (or file) object :param grp: HDF group or file :param exclude: (sub-)group or dataset names to be excluded; by default ‘data’ and ‘image :param max_len: maximum length of data field to be included (along first direction) :return: dictionary corresponding to HDF group