prototype that applies any swiss cheese mask found in the ADS #579
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of work
This is a very primitive implementation of prototype swiss cheese mask. External to SNAPRed, I have machinery to make the swiss cheese masks and to save these to a mantid BinMaskTableWorkspace with the names:
maskBins_{units}Where units are recognised mantid units such as dSpacing, Wavelength, TOF
I then modified SNAPRed to check if any of these are present in the ADS and, if it finds these, apply them by looping through all bin_mask ws it finds, then
MaskBinsFromTablefinally, it converts units back to TOF.
Explanation of work
This is obviously not the best way to handle the operation.
I would like to make a list of BinMaskTableWorkspaces a reduction ingredient identical to pixel masks. I'd then like these to be saved the same as pixel masks.
Any advice on how to go about this appreciated!
(the machinery to make the mask can stay outside of SNAPRed and live in SNAPBlue)
To test
Dev testing
CIS testing
# replace with your test script belowLink to EWM item
EWM#<ticket_number>
Verification
Acceptance Criteria
This list is for ease of reference, and does not replace reading the EWM story as part of the review. Verify this list matches the EWM story before reviewing.