Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROI support for RITS export #1958

Merged
merged 8 commits into from
Nov 22, 2023
Merged

ROI support for RITS export #1958

merged 8 commits into from
Nov 22, 2023

Conversation

samtygier-stfc
Copy link
Collaborator

Issue

closes #1957

Description

Add a distinct ROI to be used with the Image/RITS export mode.
Toggle visibility appropriately
Use the ROI when exporting

Testing & Acceptance Criteria

Load the Brass dataset, corrected sample and open beams
Ensure that the spectra file is selected as the sample log
In spectrum view enable normalisation, and set to open beam
On the image export tab, export to RITS
Adjust the ROI to just the sample and export again
Check that the values in the exported file match those displayed in the viewer.

Check that the ROIs toggle sensibly when moving back and forth between tabs.

Documentation

Release notes

Avoid the spectrum plot range being scaled to show zero
@coveralls
Copy link

coveralls commented Oct 27, 2023

Coverage Status

coverage: 75.463% (-0.6%) from 76.013%
when pulling ab79dcf on 1957-rits-roi
into 28db74e on main.

@samtygier-stfc samtygier-stfc marked this pull request as ready for review October 30, 2023 11:12
@JackEAllen JackEAllen self-requested a review November 22, 2023 10:37
Copy link
Collaborator

@JackEAllen JackEAllen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a small suggestion so we can have something usable with RITS the nightly in the meantime while we work on #1943 then happy to approve 👍

@JackEAllen JackEAllen enabled auto-merge November 22, 2023 12:52
@JackEAllen JackEAllen added this pull request to the merge queue Nov 22, 2023
Merged via the queue into main with commit c227fb2 Nov 22, 2023
8 checks passed
@JackEAllen JackEAllen deleted the 1957-rits-roi branch November 22, 2023 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RITS output spectrum for ROI, not whole field
3 participants