1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-04-23 00:32:42 +02:00

fix: adapt code to BEC 1.0

This commit is contained in:
2024-02-07 17:14:33 +01:00
parent a7bfcc12b9
commit b36131eed5
10 changed files with 1001 additions and 24 deletions
@@ -271,7 +271,7 @@ class StreamPlot(QtWidgets.QWidget):
continue
endpoint = f"px_stream/projection_{self._current_proj}/data"
msgs = self.client.producer.lrange(topic=endpoint, start=-1, end=-1)
data = [messages.DeviceMessage.loads(msg) for msg in msgs]
data = msgs
if not data:
continue
with np.errstate(divide="ignore", invalid="ignore"):