tomoscan.utils.drac.mapper#

mapper functions to convert from raw data fields (like nabu reconstructed volume metadata) to drac / icat fields

Functions

flatten_vol_metadata(metadata[, parent_key, sep])

Flatten a nested dictionary (expected to come from nabu volume metadata) and converting arrays to lists and numpy types to serializable types.

map_nabu_keys_to_drac(flatten_dict)

map a set of nabu keys to drac 'TOMOReconstruction' definition (https://gitlab.esrf.fr/icat/hdf5-master-config/-/blob/master/hdf5_cfg.xml)