This commit is contained in:
2025-08-26 09:02:54 +02:00
parent 9f593fb151
commit 623c2ecd78
+6 -5
View File
@@ -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