Skip to content

Commit

Permalink
Increase timeout for scan recording to 4x frame time to avoid unneces…
Browse files Browse the repository at this point in the history
…sary timeouts.
  • Loading branch information
cmeyer committed Dec 7, 2024
1 parent 357e031 commit 2c7e2f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nion/instrumentation/scan_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2c7e2f7

Please sign in to comment.