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