This commit is contained in:
2025-09-11 17:11:55 +02:00
parent 17d23d0a0b
commit 82d02abdf9
+6 -4
View File
@@ -419,7 +419,7 @@ if __name__ == "__main__": # pragma: no cover
timepix.wait_for_connection(all_signals=True, timeout=10)
timepix.on_connected()
print("Timepix connected and initialized.")
for exp_time, frames_per_trigger, runs in zip([0.003, 0.005, 0.1], [40, 20, 10], [5, 3, 2]):
for exp_time, frames_per_trigger, runs in zip([0.003, 0.5, 1], [40, 20, 5], [5, 3, 2]):
print(
f"Running scan with exp_time={exp_time}, frames_per_trigger={frames_per_trigger}, runs={runs}"
)
@@ -452,9 +452,11 @@ if __name__ == "__main__": # pragma: no cover
if time.time() - start_time > 30:
print("Breaking loop manually after 30 seconds of waiting.")
print(f"Received number of messages: {len(timepix.backend.msg_buffer)}")
print(
f"Shape of signal {timepix.tds_energies.get().signals[timepix.tds_energies.name]['value'].shape}"
)
if timepix.tds_energies.get() is not None:
# msgs.append(timepix.backend.msg_buffer)
print(
f"Shape of signal {timepix.tds_energies.get().signals[timepix.tds_energies.name]['value'].shape}"
)
status = timepix.complete()
print("Waiting for timepix to complete.")
status.wait(timeout=10)