w
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user