From 97bc255aeba4eda8f32c72604b9cd101d1348665 Mon Sep 17 00:00:00 2001 From: appel_c Date: Fri, 19 Dec 2025 09:42:42 +0100 Subject: [PATCH] w --- superxas_bec/devices/timepix/timepix.py | 2 +- .../timepix/timepix_fly_client/timepix_fly_interface.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/superxas_bec/devices/timepix/timepix.py b/superxas_bec/devices/timepix/timepix.py index 454a8d4..f80c511 100644 --- a/superxas_bec/devices/timepix/timepix.py +++ b/superxas_bec/devices/timepix/timepix.py @@ -432,7 +432,7 @@ class Timepix(PSIDeviceBase, TimePixControl): # TODO this should no longer happen now as this was fixed in the backend.. else: for msg in data_frames: - tds_period += msg["period"] + tds_period = msg["period"] tds_total_events += msg["totalEvents"] for ii in range(n_energy_points): xes_data[ii, :] += msg["TDSpectra"][ii::n_energy_points] diff --git a/superxas_bec/devices/timepix/timepix_fly_client/timepix_fly_interface.py b/superxas_bec/devices/timepix/timepix_fly_client/timepix_fly_interface.py index 10c7a45..7ce4aa5 100644 --- a/superxas_bec/devices/timepix/timepix_fly_client/timepix_fly_interface.py +++ b/superxas_bec/devices/timepix/timepix_fly_client/timepix_fly_interface.py @@ -138,7 +138,14 @@ class TimepixXESFrame(TimePixResponse): class TimepixEndFrame(TimePixResponse): - """TimepixEndFrame is a Pydantic model that represents the end frame of a TimePix acquisition.""" + """ + TimepixEndFrame is a Pydantic model that represents the end frame of a TimePix acquisition. + + Attributes: + - type: str - The type of the response, default is "EndFrame". + - error: str - If an error occured during acuisition, this field contains the error message. Empty string otherwise. + - periods: int - The last period count minus 3 (3 being the period predictor delay). + """ type: str = "EndFrame" error: str