mantidproject / mantidimaging

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

Toggle shuttercount #2234

Closed JackEAllen closed 3 months ago

JackEAllen commented 3 months ago

Issue

Closes #2230

Description

Add a description of the changes made.

Modify Spectrum Viewer to add toggle interface for ShutterCount normalisation correction and warning icon when ShutterCount correction is toggled on, ShutterCount stacks are not loaded.

Testing

Describe the tests that were used to verify your changes.

Acceptance Criteria

How should the reviewer test your changes?

Documentation

How have you changed the documentation to reflect your changes? All changes should be noted in the appropriate file in docs/release_notes

docs/release_notes/next/feature-2230-ShutterCount_Correction_CheckBox

JackEAllen commented 3 months ago

This PR changes the spectrum viewer GUI and therefore I have updated the screenshot test baselines

coveralls commented 3 months ago

Coverage Status

coverage: 73.171% (-0.1%) from 73.286% when pulling ed3c260922170c7a55f9a437ef1dc785bfca32bf on toggle_shuttercount into 7af6d743e67d78e17ebaad6d7d145d9c7d9d5b6a on main.

coveralls commented 3 months ago

Coverage Status

coverage: 73.157% (-0.1%) from 73.286% when pulling 73047cdaa62e272b336fef87e36228d0c77f72b6 on toggle_shuttercount into 7af6d743e67d78e17ebaad6d7d145d9c7d9d5b6a on main.

samtygier-stfc commented 3 months ago

A small thing if its easy to fix.

The fix might be to uncheck the shuttercount check box when it is disabled.

coveralls commented 3 months ago

Coverage Status

coverage: 73.161% (-0.1%) from 73.286% when pulling 916851fb33997f1df7a3770d56c0415c97f40691 on toggle_shuttercount into 7af6d743e67d78e17ebaad6d7d145d9c7d9d5b6a on main.

JackEAllen commented 3 months ago

A small thing if its easy to fix.

  • With a dataset that does not have shutter counts
  • Open spectrum viewer, check "Normalise to open beam" and set norm stack
  • Check "ShutterCount Correction", the error should now be displayed
  • Change the Norm stack to the sample, this should the error for the norm to open beam, hides the shuttercount error, disables the shuttercount checkbox.
  • Change the Norm stack back to the open beam
  • Now the shutter count check box is enabled and checked, but not showing the error message.

The fix might be to uncheck the shuttercount check box when it is disabled.

Thanks for noticing this one, yeah, easy to fix, just uncheck if disabled within handle_button_enabled

coveralls commented 3 months ago

Coverage Status

coverage: 73.156% (-0.1%) from 73.286% when pulling 63e838cadd21a8f72e78a854f4f4981e7c2dc28d on toggle_shuttercount into 7af6d743e67d78e17ebaad6d7d145d9c7d9d5b6a on main.

JackEAllen commented 3 months ago

Looking good. I've gone through steps on the issue plus some extra playing around.

Thanks for the thorough review 👍