Skip to content

Commit

Permalink
small test change
Browse files Browse the repository at this point in the history
  • Loading branch information
RMeli committed Nov 28, 2024
1 parent 2a1710b commit 19a907f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions testsuite/MDAnalysisTests/transformations/test_rotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
# J. Comput. Chem. 32 (2011), 2319--2327, doi:10.1002/jcc.21787
#

import MDAnalysis as mda
import numpy as np
import pytest
from MDAnalysis.lib.transformations import rotation_matrix
from MDAnalysis.transformations import rotateby
from numpy.testing import assert_array_almost_equal

import MDAnalysis as mda
from MDAnalysis.transformations import rotateby
from MDAnalysis.lib.transformations import rotation_matrix
from MDAnalysisTests import make_Universe


Expand Down Expand Up @@ -77,9 +77,7 @@ def test_rotateby_custom_point(rotate_universes, point):
trans = trans_u.trajectory.ts
ref = ref_u.trajectory.ts
vector = [1, 0, 0]
pos = point.reshape(
3,
)
pos = point.reshape(3)
angle = 90
matrix = rotation_matrix(np.deg2rad(angle), vector, pos)
ref_u.atoms.transform(matrix)
Expand All @@ -98,9 +96,7 @@ def test_rotateby_vector(rotate_universes, vector):
ref = ref_u.trajectory.ts
point = [0, 0, 0]
angle = 90
vec = vector.reshape(
3,
)
vec = vector.reshape(3)
matrix = rotation_matrix(np.deg2rad(angle), vec, point)
ref_u.atoms.transform(matrix)
transformed = rotateby(angle, vector, point=point)(trans)
Expand Down

0 comments on commit 19a907f

Please sign in to comment.