0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

feat: plot flips every second row

This commit is contained in:
wyzula-jan
2023-09-07 16:35:13 +02:00
parent 9271b91113
commit c368871919

View File

@ -78,12 +78,12 @@ class StreamApp(QWidget):
row = msgMCS.content["signals"]["mca1"]
metadata = msgMCS.metadata
# Check if the current number of rows is odd
if parent.data is not None and parent.data.shape[0] % 2 == 1:
row = np.flip(row) # Flip the row
if parent.data is None:
parent.data = np.array([row])
# Check if the current number of rows is odd
# if parent.data is not None and parent.data.shape[0] % 2 == 0:
# row = np.flip(row) # Flip the rowR
else:
parent.data = np.vstack((parent.data, row))