Skip to content

Commit

Permalink
Debug 6
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeyer committed Dec 30, 2024
1 parent 597917d commit ae29dc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nion/device_kit/CameraDevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ def __direct_acquire(self, cancel_event: threading.Event, do_sync: bool = False)
import logging
logging.warning(f"{wait_s=} {actual_elapsed_s=} {self.__exposure=} {elapsed=} needed {self.__exposure - actual_elapsed_s=}")
print(f"{wait_s=} {actual_elapsed_s=} {self.__exposure=} {elapsed=} needed {self.__exposure - actual_elapsed_s=}")
time.sleep(self.__exposure - actual_elapsed_s) # adjust in case the wait returns early (observed on python 3.13/windows)
# thread event was not triggered during wait; signal that we have data
xdata._set_timestamp(DateTime.utcnow())
self.__xdata_buffer = xdata
Expand Down

0 comments on commit ae29dc5

Please sign in to comment.