euler_sequence

Contents

euler_sequence#

abtem.atoms.euler_sequence(axes, convention)[source]#
Parameters:
  • axes (str) – Specifies the order of rotation axes. It should be a string representing a valid combination of the letters ‘x’, ‘y’, and ‘z’ in any order. For example, ‘xyz’ represents a sequence of rotations about the x-axis, y-axis, and z-axis in that order.

  • convention (str) – Specifies the convention used for the Euler angles. It should be either ‘intrinsic’ or ‘static’ for rotations applied to a fixed frame or ‘extrinsic’ or ‘rotating’ for rotations applied to a rotating frame.

Returns:

A tuple of four angles (theta1, theta2, theta3, phi) representing the Euler sequence specified by the given axes and convention.

Return type:

tuple

Raises:

ValueError – If the given convention is not one of the valid options (‘intrinsic’, ‘static’, ‘extrinsic’, ‘rotating’).