Expose channels name as original name and not as alias name
Discussed with @matias.guijarro and @pguillou in a meeting related to scan_info
,
It would be good to think about exposing back channels as there original names, and not as the aliased name.
For now if you have:
- a channel
device1:channel2
- with an alias
alias3
- the channel is exposed as
device1:alias3
As result the original name is lost.
This makes some assumption difficult, like knowing the main channel of a Lima detector (which is supposed to be limadetector:image
). The channel name could be exposed with another name.
There is code to handle aliases (alias
field) on writer and on Flint (display_name
). This code is then not used.
Depending on the decision it would be good to:
- Use the original name and make sure aliases are properly displayed in Flint (that's probably not the case right now)
- Use aliases and clean up dead code (
alias
anddisplay_name
).