mantidproject / mantidimaging

Graphical toolkit for neutron imaging.
https://mantidproject.github.io/mantidimaging
GNU General Public License v3.0
10 stars 6 forks source link

Move logic from Spectrum Viewer view to presenter to make it testable #2224

Closed MikeSullivan7 closed 2 weeks ago

MikeSullivan7 commented 3 weeks ago

In the Spectrum Viewer view, there are a few functions which have logic in them which is better suited to the presenter. If the logic can be successfully moved into the presenter, then it will be easier to test and may even streamline some operations. If it can be helped, the view should contain functions which set and get things in the GUI and any complicated logic should be handled in the presenter.