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:
@ -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)
|
||||
|
Reference in New Issue
Block a user