From 2c7e2f7c58bd055391ba90ca3a565b3f5ac6bb1b Mon Sep 17 00:00:00 2001 From: Chris Meyer <34664+cmeyer@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:12:26 -0800 Subject: [PATCH] Increase timeout for scan recording to 4x frame time to avoid unnecessary timeouts. --- nion/instrumentation/scan_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nion/instrumentation/scan_base.py b/nion/instrumentation/scan_base.py index 8e93e3f..e4b3d8c 100755 --- a/nion/instrumentation/scan_base.py +++ b/nion/instrumentation/scan_base.py @@ -1822,7 +1822,7 @@ def record_thread() -> None: def handle_finished(data_promises: typing.Sequence[HardwareSource.DataAndMetadataPromise]) -> None: callback_fn(data_promises) - self.start_recording(current_frame_time, finished_callback_fn=handle_finished) + self.start_recording(sync_timeout=max(current_frame_time * 4, 1.0), finished_callback_fn=handle_finished) self.__thread = threading.Thread(target=record_thread) self.__thread.start()