pyxem / orix

Analysing crystal orientations and symmetry in Python
https://orix.readthedocs.io
GNU General Public License v3.0
79 stars 45 forks source link

Examples demonstrating (Mis)Orientation.from_align_vectors() #414

Closed hakonanes closed 1 year ago

hakonanes commented 1 year ago

Description of the change

Added two examples to the examples gallery (from PR comments https://github.com/pyxem/orix/pull/401#pullrequestreview-1138061052 and https://github.com/pyxem/orix/pull/401#pullrequestreview-1139428658):

I've also added the possibility to pass symmetry to Orientation.from_scipy_rotation() and Misorientation.from_scipy_rotation(). Rotation.from_scipy_rotation() is also updated, so that all these three methods have custom docstrings. I've also made sure these methods return a tuple instead of a list if either of return_rmsd or return_sensitivity are True.

Progress of the PR

For reviewers