Skip to content

Commit

Permalink
Update test_atoms.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Jan 19, 2021
1 parent b76489c commit 7319afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/atomistics/structure/test_atoms.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def test_rotate_euler(self):
self.assertAlmostEqual(np.arccos(basis.positions[1, :2].sum() / 2) / np.pi, 0.1)
basis = unitcell.copy()
center_of_mass = basis.get_center_of_mass()
basis.rotate_euler(phi=0.1 * np.pi, center="com")
basis.euler_rotate(phi=0.1 * 180, center="com")
self.assertTrue(np.allclose(basis.get_center_of_mass(), center_of_mass))
basis = unitcell.copy()
center_of_positions = basis.positions.mean(axis=0)
Expand Down

0 comments on commit 7319afb

Please sign in to comment.