[lima] scan with save_images=False
The writer knows not to expect images when node.info.get("saving_mode")=="MANUAL"
. In all other modes, it expects data and goes in FAULT state when no data has arrived by the end of the scan.
Has this logic changes @sebastien.petitdemange @claustre ? And if it has changed, how can I know from the lima image node in Redis whether to expect images or not?
With the current master, the writer goes in FAULT with the scan below
s=loopscan(1,0.1,lima_simulator.image,save_images=False)
The "saving_mode" is missing from the node's info dict:
NEXUS_WRITER_SESSION [26]: from bliss.data.node import get_node
NEXUS_WRITER_SESSION [27]: get_node(f"{SCANS[-1].node.db_name}:timer:lima_simulator:image").info["scan_saving"]
!!! === KeyError: 'scan_saving' === !!! ( for more details type cmd 'last_error' )
If this is missing, what do I assume? Do I assume we expect data or we don't expect data?