Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimovdmitrii authored Jan 15, 2025
1 parent 97cb6c4 commit 30bdaf5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/single_molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,10 @@ def test_set_center_of_mass(self):
format="xyz",
)

com = [0, 0, 0]
atoms.set_center_of_mass(com)
coords_ref = atoms_ref.get_positions()
coords = atoms.get_positions()
np.testing.assert_array_almost_equal(coords, coords_ref)
com_ref = [0, 0, 0]
atoms.set_center_of_mass(com_ref)
com = atoms.get_center_of_mass()
np.testing.assert_array_almost_equal(com, com_ref)

def test_for_internal_clashes(self):
"""Test different conformations
Expand Down

0 comments on commit 30bdaf5

Please sign in to comment.