-
Notifications
You must be signed in to change notification settings - Fork 3
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
Refine UB from 4D MDE #119
Conversation
7d874c3
to
92ad8bc
Compare
I'm testing it with the The following things are not right:
I suggest you try to test with the above workspace, and set the UB slightly off |
That dimension is already integrated, I can do this but it won't change anything?
It now doesn't open the peaksviewer and just does add peaks.
The plots were only updating when you selected a row, I have changed it to update after recentering.
Using your test file, the issue is not with what I have implemented here but with Mantid and the "Add Peaks" of the sliceviewer. It first tries to get the projection matrix from the basis vectors and if that fails then the W_MATRIX. So if you look it is not getting the correct HKL when you add a peak. MDNorm is setting the basis vectors but I think we need to use the W_MATRIX instead. This needs to be fixed in Mantid here. If I change that method to just return which looks good to me.
I have now disabled the tab while things are running so that shouldn't happen. |
I fixed the issue with the sliceviewer add peaks, making it always use W_MATRIX here and UB refinement should be correct now. 🤞 |
I was able to get the U Matrix right for the HYSPEC data. I need to test it with the full 3D refinement. There are some remaining issues:
then the workbench crashes (I get the terminate-continue dialog box), with the following message:
|
98df012
to
e179eb1
Compare
I hope I have fixed all those errors now. |
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.
Seems to be working as expected, at least for refining the orientation only. No crashes. I need to do more testing, for the cases with refining the full UB. I will tentatively approve it
898
To test:
From the MDE menu select "Refine sample parameters"
Enter binning parameters then hit histogram. That should get you to the Refine UB tab.