def test_from_euler_rotation_order():
// Intrinsic rotation is same as extrinsic with order reversed
np.random.seed(0)
a = np.random.randint(low=0, high=180, size=(6, 3))
b = a[:, ::-1]
x = Rotation.from_euler("xyz", a, degrees=True).as_quat()
y = Rotation.from_euler("ZYX", b, degrees=True).as_quat()
After Change
def test_from_euler_rotation_order():
// Intrinsic rotation is same as extrinsic with order reversed
rnd = np.random.RandomState(0)
a = rnd.randint(low=0, high=180, size=(6, 3))
b = a[:, ::-1]
x = Rotation.from_euler("xyz", a, degrees=True).as_quat()
y = Rotation.from_euler("ZYX", b, degrees=True).as_quat()
assert_allclose(x, y)