mantidproject / mantidimaging

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

Spectrum viewer refactoring - Moving logic from the view to the presenter #2227

Closed MikeSullivan7 closed 2 weeks ago

MikeSullivan7 commented 3 weeks ago

Issue

Closes #2224

Description

The following functions have been moved from the view to the presenter:

some new functions have been made to help with testing:

The logic for presenter.handle_storing_current_roi_name_on_tab_change has also been simplified.

Unit tests for the following functions have been added:

Testing

make check

Acceptance Criteria

Open MI and load some data into it (with spectrum file if possible) and make sure that the functionality is the same as it was before this refactor and no bugs have been introduced.

run make check or make test and check that all tests pass

Documentation

Will add release note

coveralls commented 3 weeks ago

Coverage Status

coverage: 72.978% (+0.3%) from 72.705% when pulling 529ee6c8107a050f3b4195a132ab0659d06d64b2 on 2224_spectrum_viewer_refactoring into 06f179e795d048342469aed93f20079de8850511 on main.

coveralls commented 2 weeks ago

Coverage Status

coverage: 72.975% (+0.3%) from 72.705% when pulling b09bebe14bc6c448474153653a7d0336bb5793ef on 2224_spectrum_viewer_refactoring into 06f179e795d048342469aed93f20079de8850511 on main.