-
Notifications
You must be signed in to change notification settings - Fork 128
Fix Incorrect Sample Shape In Added SANS Runs #39234
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
Fix Incorrect Sample Shape In Added SANS Runs #39234
Conversation
The unit test data isn't split up like the system test data, so remove the leading directory in the test. RE mantidproject#39106
Hi @cailafinn I couldn't find |
Having followed the test steps above, could you please confirm below observations are correct? 1- At Thanks! |
This is the expectation, yes - that the SampleShape is the same after summing as it was the summing step.
I'm not sure how you'd be able to perform step 14 (which loads the |
Ah, it may be getting it directly from the ADS instead. In that case that would seem to be the expected behaviour. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes looks fine and I have followed the given test steps to get expected results. Happy approve!
Makes adjustments to SANSadd2 (the underlying code for the Sum Runs tab on the ISIS SANS interface) so that nexus files also have their sample metadata maintained like we do with raw files. Fixes mantidproject#39106
Description of work
Summary of work
Makes adjustments to SANSadd2 (the underlying code for the Sum Runs tab on the ISIS SANS interface) so that nexus files also have their sample metadata maintained like we do with raw files.
Fixes #39106
Report to: Diego
Further detail of work
This is from the end of a long mess of trying to understand how this metadata is stored and loaded at nexus file creation, loading, manipulation, and then saving. The short answer is that it is horribly inconsistent. See this discussion.
Trying to fix this inconsistency went beyond the scope of the problem, so this PR instead solves it only on the SANS end and tries to account for any confusion by manually setting the sample information before it's saved when summing.
Also fixes an issue where runs named "FLATPLATE" in the nexus file would appear as "Disc" due to the missing space.
Also adds unit tests that run quickly to track this behaviour rather than the full workflow ones that exist in the systest package.
To test:
USER_ZOOM_Su_8m_3Dmagnet_245H_large_BEAMSTOP.toml
from IDAaaS (or just ask me)User File
.49179
in the firstSample Scatter
box.Sample Geometry
checkbox.Process All
. The run will fail, but theSampleShape
box should now say "FlatPlate"Sum Runs
49179
in theRuns to Sum
field.Add
Save Directory
is a) somewhere sensible and b) in your list of data directories.Sum
Runs
tabSave File
) from theSum Runs
tab in theSample Scatter
box.-add
run should also have a "FlatPlate"SampleShape
Reviewer
Please comment on the points listed below (full description).
Your comments will be used as part of the gatekeeper process, so please comment clearly on what you have checked during your review. If changes are made to the PR during the review process then your final comment will be the most important for gatekeepers. In this comment you should make it clear why any earlier review is still valid, or confirm that all requested changes have been addressed.
Code Review
Functional Tests
Does everything look good? Mark the review as Approve. A member of
@mantidproject/gatekeepers
will take care of it.Gatekeeper
If you need to request changes to a PR then please add a comment and set the review status to "Request changes". This will stop the PR from showing up in the list for other gatekeepers.