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