From 6733371c2ccb4e233d9aa9421e21d627978925d7 Mon Sep 17 00:00:00 2001 From: wyzula-jan <133381102+wyzula-jan@users.noreply.github.com> Date: Fri, 8 Sep 2023 14:36:25 +0200 Subject: [PATCH] fix: rotation logic fixed --- bec_widgets/examples/eiger_plot/eiger_plot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bec_widgets/examples/eiger_plot/eiger_plot.py b/bec_widgets/examples/eiger_plot/eiger_plot.py index e5cf1c62..491ffb0e 100644 --- a/bec_widgets/examples/eiger_plot/eiger_plot.py +++ b/bec_widgets/examples/eiger_plot/eiger_plot.py @@ -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)