mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
fix: rotation logic fixed
This commit is contained in:
@ -90,9 +90,7 @@ class EigerPlot(QWidget):
|
|||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def on_image_update(self):
|
def on_image_update(self):
|
||||||
if self.comboBox_rotation.currentIndex() == 0: # non rotated image
|
if self.comboBox_rotation.currentIndex() > 0: # rotated image
|
||||||
self.imageItem.setImage(self.image, autoLevels=False)
|
|
||||||
else: # rotated image
|
|
||||||
self.image = self.rotate_data(data=self.image, k=self.comboBox_rotation.currentIndex())
|
self.image = self.rotate_data(data=self.image, k=self.comboBox_rotation.currentIndex())
|
||||||
|
|
||||||
self.imageItem.setImage(self.image, autoLevels=False)
|
self.imageItem.setImage(self.image, autoLevels=False)
|
||||||
|
Reference in New Issue
Block a user