From f2d85cb891a17c5c1622ca0e0163b56229f6b1ce Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Fri, 9 Feb 2024 19:06:58 +0000 Subject: [PATCH] sleep before capturing --- src/openflexure_microscope_server/things/smart_scan.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openflexure_microscope_server/things/smart_scan.py b/src/openflexure_microscope_server/things/smart_scan.py index 1cab19db..b03c2d93 100644 --- a/src/openflexure_microscope_server/things/smart_scan.py +++ b/src/openflexure_microscope_server/things/smart_scan.py @@ -683,6 +683,7 @@ class SmartScanThing(Thing): logger.info(f"Waited {wait_time:.1f}s for the previous capture to finish saving.") acquired = Event() name = f"image_{loc[0]}_{loc[1]}.jpg" + time.sleep(0.2) capture_thread = Thread( target=capture_and_save, kwargs={