scan_info: Dispatch acquisition_chain meta per channels
I want to rework scan_info acquisition_chain
in order to dispatch channel meta outside.
scan_info["acquisition_chain"] = -> stuff with only channel name (which is a channel id)
scan_info["channels"][channel_id] = -> stuff with metadata per channels id
From:
scan_info = {
"acquisition_chain": {
"pcoedge": {
"master": {
"scalars": [],
"scalars_units": {"pcoedge:image": None},
"spectra": [],
"images": ["pcoedge:image"],
"display_names": {"pcoedge:image": "image"},
},
"scalars": ["pcoedge:roi_counters:pcoroi1:avg"],
"scalars_units": {"pcoedge:roi_counters:pcoroi1:avg": "mm"},
"spectra": [],
"images": [],
"display_names": {"pcoedge:roi_counters:pcoroi1:avg": "pcoroi1:avg"},
}
}
}
To:
scan_info = {
"acquisition_chain": {
"pcoedge": {
"master": {"scalars": [], "spectra": [], "images": ["pcoedge:image"]},
"scalars": ["pcoedge:roi_counters:pcoroi1:avg"],
"spectra": [],
"images": [],
}
},
"channels": {
"pcoedge:image": {"display_name": "image"},
"pcoedge:roi_counters:pcoroi1:avg": {
"display_name": "pcoroi1:avg",
"units": "mm",
},
},
}
Basically i want to
- remove
display_names
andunits
fromacquisition_chain
tochannels
- rename what i call
requests
intochannels
As result all the meta per channels will be together.
Is anybody expect me uses this display_names
, and units
metdata? @denolf?
We can provide a backward compatibility (by duplicating the data), but only if it is needed.
Edited by Valentin Valls