From 49754b8cc1e37fe7ccd4e0db0ec09a460bfaab0c Mon Sep 17 00:00:00 2001 From: appel_c Date: Fri, 15 Aug 2025 10:36:48 +0200 Subject: [PATCH] w --- superxas_bec/devices/timepix/timepix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superxas_bec/devices/timepix/timepix.py b/superxas_bec/devices/timepix/timepix.py index 8a8d6f4..ef31b56 100644 --- a/superxas_bec/devices/timepix/timepix.py +++ b/superxas_bec/devices/timepix/timepix.py @@ -210,7 +210,7 @@ class Timepix(PSIDeviceBase, TimePixControl): # TODO should we return, continue or raise? # Create data return arrays - xes_data = np.zeros((n_energy_points, troin), dtype=np.uint32) + xes_data = np.zeros((n_energy_points, troin), dtype=np.float32) tds_period = 0 tds_total_events = 0 if len(data_frames) == 0: @@ -447,7 +447,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.5, 1], [40, 20, 5], [5, 3, 2]): + for exp_time, frames_per_trigger, runs in zip([0.003, 0.5], [40, 10], [5, 5]): print( f"Running scan with exp_time={exp_time}, frames_per_trigger={frames_per_trigger}, runs={runs}" )