From 5e3855864f3b56331ae7f2cf16b9a87bf2781f0d Mon Sep 17 00:00:00 2001 From: appel_c Date: Fri, 19 Dec 2025 10:01:55 +0100 Subject: [PATCH] w --- superxas_bec/devices/timepix/timepix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superxas_bec/devices/timepix/timepix.py b/superxas_bec/devices/timepix/timepix.py index ac697a3..cff6eea 100644 --- a/superxas_bec/devices/timepix/timepix.py +++ b/superxas_bec/devices/timepix/timepix.py @@ -441,7 +441,7 @@ class Timepix(PSIDeviceBase, TimePixControl): for ii in range(n_energy_points): xes_data[ii, :] += msg["TDSpectra"][ii::n_energy_points] total_periods = tds_period[-1] / start_frame.get("save_interval", 1) - tds_period = tds_period / start_frame.get("save_interval", 1) + tds_period = np.array(tds_period) / start_frame.get("save_interval", 1) xes_data = xes_data.T # Transpose to get shape (troin, n_energy_points) if total_periods is not None: self.total_periods.put(total_periods)