From f5bb68975c1e9cd849c2309a2e1fad2c4be7ae32 Mon Sep 17 00:00:00 2001 From: appel_c Date: Wed, 17 Sep 2025 14:22:21 +0200 Subject: [PATCH] w --- superxas_bec/devices/timepix/timepix.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/superxas_bec/devices/timepix/timepix.py b/superxas_bec/devices/timepix/timepix.py index c030254..95a5842 100644 --- a/superxas_bec/devices/timepix/timepix.py +++ b/superxas_bec/devices/timepix/timepix.py @@ -253,14 +253,14 @@ class Timepix(PSIDeviceBase, TimePixControl): xes_data[ii, :] += msg["TDSpectra"][ii::n_energy_points] # Put XES data msg_data = {self.xes_data.name: {"value": xes_data, "timestamp": time.time()}} - self.xes_data.put( - msg_data, metadata={"type": "add", "max_shape": [None, n_energy_points, troin]} - ) + md = {"async_update": {"type": "add", "max_shape": [None, n_energy_points, troin]}} + self.xes_data.put(msg_data, metadata=md) # Put XES spectra msg_spectra = { self.xes_spectra.name: {"value": xes_data.sum(axis=1), "timestamp": time.time()} } - self.xes_spectra.put(msg_spectra, metadata={"type": "add", "max_shape": [None, troin]}) + md = {"async_update": {"type": "add", "max_shape": [None, troin]}} + self.xes_spectra.put(msg_spectra, metadata=md) # Put TDS info msg_info = { f"{self.xes_info.name}_tds_period": {"value": tds_period, "timestamp": time.time()},