MCPcopy Index your code
hub / github.com/mne-tools/mne-python / test_euler

Function test_euler

mne/tests/test_transforms.py:575–582  ·  view source on GitHub ↗

Test euler transformations.

(quats)

Source from the content-addressed store, hash-verified

573
574
575def test_euler(quats):
576 """Test euler transformations."""
577 euler = _quat_to_euler(quats)
578 quats_2 = _euler_to_quat(euler)
579 assert_allclose(quats, quats_2, atol=1e-14)
580 quat_rot = quat_to_rot(quats)
581 euler_rot = np.array([rotation(*e)[:3, :3] for e in euler])
582 assert_allclose(quat_rot, euler_rot, atol=1e-14)
583
584
585@pytest.mark.slowtest

Callers

nothing calls this directly

Calls 4

_quat_to_eulerFunction · 0.90
_euler_to_quatFunction · 0.90
quat_to_rotFunction · 0.90
rotationFunction · 0.90

Tested by

no test coverage detected