scan: Unregistered custom channel can be emitted
This corrected_spectrum
channel is a custom channel created from a sequence.
This channel was not registered but it was possible to emit it. Here is the patch to fix the scan (https://gitlab.esrf.fr/tomo/ebs-tomo/-/commit/427e68532464ddde22cb84bc44c0d8b8b112d80f)
Could it be possible to raise an exception at the emit? And enforce the scan designer to properly use the scan API.
Else, the client side listener fail at some point. Or the channel will not be exposed anyway which will make debugging really annoying.
Traceback (most recent call last):
File "/users/valls/workspace/daiquiri-tomo.git/bliss.git/bliss/data/scan.py", line 452, in run
data_bunch=event_data.data,
File "/users/valls/workspace/daiquiri-tomo.git/bliss.git/bliss/data/scan.py", line 625, in on_ndim_data_received
top_master = scan_desciption.channels_to_master[channel_name]
KeyError: 'corrected_spectrum'
Traceback (most recent call last):
File "/users/valls/workspace/daiquiri-tomo.git/bliss.git/bliss/data/scan.py", line 452, in run
data_bunch=event_data.data,
File "/users/valls/workspace/daiquiri-tomo.git/bliss.git/bliss/data/scan.py", line 625, in on_ndim_data_received
top_master = scan_desciption.channels_to_master[channel_name]
KeyError: 'corrected_spectrum'