Skip to content

Commit

Permalink
add traling comma
Browse files Browse the repository at this point in the history
  • Loading branch information
RMeli committed Nov 29, 2024
1 parent 19a907f commit 29e32db
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion testsuite/MDAnalysisTests/transformations/test_rotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ def test_rotation_matrix():
angle = 180
vector = [0, 0, 1]
pos = [0, 0, 0]
ref_matrix = np.asarray([[-1, 0, 0], [0, -1, 0], [0, 0, 1]], np.float64)
ref_matrix = np.asarray(
[
[-1, 0, 0],
[0, -1, 0],
[0, 0, 1],
],
np.float64,
)
matrix = rotation_matrix(np.deg2rad(angle), vector, pos)[:3, :3]
assert_array_almost_equal(matrix, ref_matrix, decimal=6)
# another angle in a custom axis
Expand Down

0 comments on commit 29e32db

Please sign in to comment.