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

fix: rotation logic fixed

This commit is contained in:
wyzula-jan
2023-09-08 14:36:25 +02:00
parent 9f80f0f4d4
commit 6733371c2c

View File

@ -90,9 +90,7 @@ class EigerPlot(QWidget):
@pyqtSlot()
def on_image_update(self):
if self.comboBox_rotation.currentIndex() == 0: # non rotated image
self.imageItem.setImage(self.image, autoLevels=False)
else: # rotated image
if self.comboBox_rotation.currentIndex() > 0: # rotated image
self.image = self.rotate_data(data=self.image, k=self.comboBox_rotation.currentIndex())
self.imageItem.setImage(self.image, autoLevels=False)