You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The size of the spectrum viewer seems to change non deterministically. This is causing failures of the screenshot tests, e.g. test_spectrum_viewer_add_new_roi. It can also be seen when running the application, e.g. with
In SpectrumViewerWindowView.__init__() the size always starts as: self.size()=PyQt5.QtCore.QSize(905, 752)
some times it will stay at this size, or some times it will be resized in show() self.size()=PyQt5.QtCore.QSize(943, 978)
Steps To Reproduce
python -m mantidimaging --path '/data/imaging/IMAT00010675_128/Tomo' -sv
or run the screenshot tests with -k test_spectrum_viewer_add_new_roi
Expected Behaviour
Consistent size
Current Behaviour
Varies, but not clear why or when
Context
And as far as I can tell it is always tall at 5b827de (#2151), but non-deterministic at ea787c4
Commenting out QApplication.instance().setStyle(settings.value('theme_selection')) makes it always be tall. But size either side of that gives the short dimensions. So some complex interaction going on.
The text was updated successfully, but these errors were encountered:
Summary
The size of the spectrum viewer seems to change non deterministically. This is causing failures of the screenshot tests, e.g.
test_spectrum_viewer_add_new_roi
. It can also be seen when running the application, e.g. withpython -m mantidimaging --path '/data/imaging/IMAT00010675_128/Tomo' -sv
or
In
SpectrumViewerWindowView.__init__()
the size always starts as:self.size()=PyQt5.QtCore.QSize(905, 752)
some times it will stay at this size, or some times it will be resized in show()
self.size()=PyQt5.QtCore.QSize(943, 978)
Steps To Reproduce
python -m mantidimaging --path '/data/imaging/IMAT00010675_128/Tomo' -sv
or run the screenshot tests with
-k test_spectrum_viewer_add_new_roi
Expected Behaviour
Consistent size
Current Behaviour
Varies, but not clear why or when
Context
And as far as I can tell it is always tall at 5b827de (#2151), but non-deterministic at ea787c4
Commenting out
QApplication.instance().setStyle(settings.value('theme_selection'))
makes it always be tall. But size either side of that gives the short dimensions. So some complex interaction going on.The text was updated successfully, but these errors were encountered: