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
Load instrument after sample logs in ReflectometryReductionOneLiveData #37053
Load instrument after sample logs in ReflectometryReductionOneLiveData #37053
Conversation
Had this failure in the doc tests
|
Ah, thanks @jhaigh0, I forgot that doctest fix had gone in since 6.9. I'll cherry pick it across here - is it affecting all the patch PRs, because I would probably expect it to? |
Haven't actually had any other osx builds finidh for those PRs, we'll keep a look-out though and get this in first if it happens to the others |
The orso standard version is provided by orsopy, which can update on conda without warning. Given this, remove the specific version from the doctest, the gist is enough.
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.
Problem fixed
Description of work
Summary of work
This PR changes
ReflectometryReductionOneLiveData
so that we load the sample logs into the live data workspace that's passed into the reduction before loading the instrument. We also load the sample logs as number series types. These changes together mean that when the instrument is loaded into the workspace the theta value can be picked up by the INTER IDF and used to calculate the correct detector pixel y positions. As a result, the detector pixel theta values are set correctly and this prevents an error when running the reduction using summation in Q (which relies on correct theta values).Fixes #37043.
Report to: Max and Becky at ISIS
Further detail of work
This fixes the main problem reported on the linked issue. As noted on the issue, I intend to continue investigating why the bank summing step (i.e. the call to
ReflectometryISISSumBanks
that produces the summed segment workspace) seems to be impacting the theta value used when summing in Q. The result of this investigation shouldn't impact on this fix, though, and if a further fix is required for that it will be done under a separate issue.To test:
See instructions on linked issue. This time there should not be an error. Also, if you compare the theta values for the detectors (using Show Detectors) in the
TOF_live
andTOF_summed_segment
workspaces then those inTOF_summed_segment
should now be different.Note that you may find you need to be plugged in on site to run live data. You will also need to have the following dependency installed in your conda environment:
conda install -c paulscherrerinstitute cachannel
. When running live data on Windows you can get a dialog popping up with an error about caRepeater, but this can be closed and ignored.This does not require release notes because it will be covered by the patch release notes.
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.