-
Notifications
You must be signed in to change notification settings - Fork 14
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
Symmetrical HKLs included after new transforms #1412
Comments
Upon studying this further, we see that the issue lies in Taking a look at one of these spots, we saw two different g vectors being input: We need to think about what to do about the Here's a test scrip that shows the difference (we are still able to call the old function in hexrd): In this script, |
After even further testing, the following was observed:
|
It appears that I get the same results as we had before if I only keep the g-vectors whose z-component is opposite in sign compared to the beam vector's z-component. So I guess the old |
This issue arose from #509, due to somewhat complex details. In short, the old `gvecToDetectorXY()` would filter out g-vectors going the wrong way (they would result in `nan`), but `gvecToDetectorXYArray()` would not. The new `gvec_to_xy()` has behavior matching `gvecToDetectorXYArray()`. But that means that places where `gvecToDetectorXY()` used to be used, we need to verify that the function does not receive g-vectors going the wrong way. Looking through the code, however, I only found one place where `gvecToDetectorXY()` used to receive g-vectors going the wrong way. It was the Laue overlay simulator, which would compute g-vectors from symmetrical HKLs (which is why it would have duplicate g-vectors going the wrong way). All other cases where `gvecToDetectorXY()` was called would be after the g-vectors were computed from `anglesToGvec()`, which I believe should always produce g-vectors going in the correct direction. As such, we only need to filter out wrong-direction g-vectors in the Laue simulator. Fixes: HEXRD/hexrdgui#1412 Signed-off-by: Patrick Avery <[email protected]>
This issue arose from #509, due to somewhat complex details. In short, the old `gvecToDetectorXY()` would filter out g-vectors going the wrong way (they would result in `nan`), but `gvecToDetectorXYArray()` would not. The new `gvec_to_xy()` has behavior matching `gvecToDetectorXYArray()`. But that means that places where `gvecToDetectorXY()` used to be used, we need to verify that the function does not receive g-vectors going the wrong way. Looking through the code, however, I only found one place where `gvecToDetectorXY()` used to receive g-vectors going the wrong way. It was the Laue overlay simulator, which would compute g-vectors from symmetrical HKLs (which is why it would have duplicate g-vectors going the wrong way). All other cases where `gvecToDetectorXY()` was called would be after the g-vectors were computed from `anglesToGvec()`, which I believe should always produce g-vectors going in the correct direction. As such, we only need to filter out wrong-direction g-vectors in the Laue simulator. Fixes: HEXRD/hexrdgui#1412 Signed-off-by: Patrick Avery <[email protected]>
It appears that symmetrical HKLs are being included after HEXRD/hexrd#509 was merged.
Labeling HKLs for some Laue overlays used to appear like this (before that was merged):
But now appear like this:
We should figure out why symmetric HKLs are not being identified correctly.
This issue is apparently not
angles_to_gvec
(I checked that one). Must be eithergvec_to_xy
ormake_sample_rmat
.The text was updated successfully, but these errors were encountered: