Skip to content

Commit

Permalink
eyes test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSullivan7 committed Feb 13, 2024
1 parent c644b5c commit ac90af4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mantidimaging/gui/windows/spectrum_viewer/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class SpectrumViewerWindowView(BaseMainWindowView):

spectrum_widget: SpectrumWidget


def __init__(self, main_window: 'MainWindowView'):
super().__init__(None, 'gui/ui/spectrum_viewer.ui')

Expand Down Expand Up @@ -123,9 +122,9 @@ def __init__(self, main_window: 'MainWindowView'):
for prop in self.roi_table_properties:
spin_box = QSpinBox()
if prop == "Top" or prop == "Bottom":
spin_box.setMaximum(self.spectrum.image.image_data.shape[0])
spin_box.setMaximum(self.spectrum_widget.image.image_data.shape[0])
if prop == "Left" or prop == "Right":
spin_box.setMaximum(self.spectrum.image.image_data.shape[1])
spin_box.setMaximum(self.spectrum_widget.image_data.shape[1])
spin_box.valueChanged.connect(self.adjust_roi)
self.roiPropertiesSpinBoxes[prop] = spin_box
for prop in self.roi_table_properties_secondary:
Expand Down

0 comments on commit ac90af4

Please sign in to comment.