flint: Problem to read the last image
There is actually (2.0.x, master) a problem to read image during a scan on some detectors.
The very last image is displayed.
Feedback from ID31, Pilatus 2M, EXTERNAL_TRIGGER_MULTI, ACCUMULATION, 0.5s integration.
Sounds like readImage(-1)
was not working, but i did not check very well everything
For now the fallback is to use last_image_ready
instead of -1
.
index 37728ef41..9b1d51b58 100644
--- a/blissdata/blissdata/lima/image_utils.py
+++ b/blissdata/blissdata/lima/image_utils.py
@@ -435,6 +435,9 @@ def image_from_server(proxy, image_index: int) -> ImageData:
ImageFormatNotSupported: when the retrieved data is not supported
"""
try:
+ if image_index == -1:
+ # -1 is supposed to be supported, but it looks to be not...
+ image_index = proxy.last_image_ready
raw_msg = proxy.readImage(image_index)
except Exception as e:
Edited by Samuel Debionne