Skip to content

Commit

Permalink
Correcting axes rotation test for z_x
Browse files Browse the repository at this point in the history
  • Loading branch information
LyceanEM committed May 24, 2024
1 parent 833fa2a commit 8ce5d34
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lyceanem/tests/test_geometryfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ def test_axes_from_normal_y_z():
def test_axes_from_normal_z_x():
boresight = np.zeros((3), dtype=np.float32)
boresight[0] = 1
rotation_matrix = np.array([[ 0., 0., 1.],
[-1., 0., 0.],
[ 0., -1., 0.]])
rotation_matrix = R.from_euler('y', 90, degrees=True).as_matrix()
assert_allclose(GF.axes_from_normal(boresight,boresight_along='z'),rotation_matrix,atol=1e-12)


Expand Down

0 comments on commit 8ce5d34

Please sign in to comment.