From 623c2ecd787470a68c14da1c470602e5287d3dd8 Mon Sep 17 00:00:00 2001 From: appel_c Date: Tue, 26 Aug 2025 09:02:54 +0200 Subject: [PATCH] w --- superxas_bec/devices/timepix/timepix.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/superxas_bec/devices/timepix/timepix.py b/superxas_bec/devices/timepix/timepix.py index b357e74..546607c 100644 --- a/superxas_bec/devices/timepix/timepix.py +++ b/superxas_bec/devices/timepix/timepix.py @@ -461,11 +461,12 @@ if __name__ == "__main__": # pragma: no cover timepix.on_connected() print("Timepix connected and initialized.") for exp_time, frames_per_trigger in zip([0.8, 0.5, 0.1], [10, 15, 20]): - # time.sleep(0.5) - # print( - # f"Sleeping for 0.5 seconds before starting the scan with exp_time={exp_time} " - # f"and frames_per_trigger={frames_per_trigger}." - # ) + time.sleep(0.5) + print( + f"Sleeping for 0.5 seconds before starting the scan with exp_time={exp_time} " + f"and frames_per_trigger={frames_per_trigger}." + ) + timepix.scan_info.msg.scan_parameters.update( { "exp_time": exp_time, # Set exposure time to 1 second for testing