-
Notifications
You must be signed in to change notification settings - Fork 128
New Python Algorithm: RefineSingleCrystalGoniometer #39277
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
New Python Algorithm: RefineSingleCrystalGoniometer #39277
Conversation
The Linux Systems Test and Windows Test failures are genuine. Please ignore OSX. I won't re-run though as there will be further commit(s) to fix the failing tests. |
Framework/PythonInterface/plugins/algorithms/RefineSingleCrystalGoniometer.py
Outdated
Show resolved
Hide resolved
Add a check for an oriented lattice. Don't run without the UB/oriented lattice
|
Once the test passes, It should be good to approve |
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.
Looks good and works well for the dataset provided.
Introduces a new python algorithm `RefineSingleCrystalGoniometer` to handle a special case where `FindUBUsingIndexedPeaks` did not index all peaks.
Description of work
Summary of work
Introduces a new python algorithm
RefineSingleCrystalGoniometer
to handle a special case whereFindUBUsingIndexedPeaks
did not index all peaks.Purpose of work
The above script shows peculiar behavior. Running FindUBUsingIndexedPeaks only indexes about half the peaks. Running index peaks right after indexes nearly all of them. It seems the FindUBUsingIndexedPeaks algorithm is not working properly.
The problem is actually with the goniometer settings of the requested angles not reflecting reality.
The solution is a new mantid algorithm that refines the UB-matrix and goniometer offsets simultaneously. This improves the indexing of the peaks for those cases when there is sample misorientation.
Fixes 9593: [Story] RefineSingleCrystalGoniometer: FindUBUsingIndexed peaks only indexes half the number of reflections as IndexPeaks.
Further detail of work
To test:
PYTHONPATH=/path/to/build/bin python3 /path/to/src/Framework/PythonInterface/test/python/plugins/algorithms/RefineSingleCrystalGoniometerTest.py
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.