-
Notifications
You must be signed in to change notification settings - Fork 84
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
Cartesian crystal reference frame #947
Comments
Thank you for the detailed report, @rbjorge. I think the best option is to allow different alignments in orix' Before doing that, though, I'd like to be able to automatically plot symmetry markers for any point group in the stereographic projection. I've started on that in this branch on my fork: https://github.com/hakonanes/orix/tree/plot-symmetry-operations. I don't have time to work on this at the moment. I've added an issue (pyxem/orix#456) to describe what we need. What do you think, @rbjorge? |
I agree that it makes sense to allow different alignments of the Cartesian reference frame in the In the meantime, would it be possible to come up with a code snippet that converts orientations based on the diffpy convention to the orix convention? This could be included in the pyxem conventions notebook. |
Describe the bug
When it comes to choosing the Cartesian crystal reference frame, orix uses one convention, while diffsims uses another (https://orix.readthedocs.io/en/stable/tutorials/crystal_reference_frame.html).
For non-orthogonal crystal structures this can be confusing, especially now that
indexation_utils.results_dict_to_crystal_map()
creates an orixCrystalMap
based on template matching using templates made by diffsims, without changing the Euler angles. When plotting the orientations of theCrystalMap
for a hexagonal phase, for example, the blue and green colors are switched.To Reproduce
To illustrate, using the orientation (0°, 90°, 120°) for a hexagonal phase:
We see from the diffraction pattern that this is the
However, orix interprets (0°, 90°, 120°) as the zone axis$[1\bar{1}0]$ ($[1\bar{1}00]$ in 4-index):
My work-around for now is to plot the orientation maps in MTEX. I suppose there are in principle at least three possible solutions: change the convention in diffsims inherited from diffpy (as orix does now), change the orix convention, or convert the orientations when making the
CrystalMap
object. Personally I prefer the first option, although that would make it a diffsims issue..The text was updated successfully, but these errors were encountered: