Skip to content

Commit

Permalink
Merge branch 'pr-57' of https://github.com/wehs7661/ensemble_md into …
Browse files Browse the repository at this point in the history
…test_MTREXEE
  • Loading branch information
wehs7661 committed Sep 11, 2024
2 parents dbd487a + f3fdbfa commit 5f8080f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ensemble_md/utils/coordinate_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ def compute_angle(coords):
vec1 = coords[0] - coords[1]
vec2 = coords[2] - coords[1]

angle = np.dot(vec1, vec2) / (np.linalg.norm(vec1) * np.linalg.norm(vec2))
angle = np.arccos(np.dot(vec1, vec2) / (np.linalg.norm(vec1) * np.linalg.norm(vec2)))

return angle

Expand Down

0 comments on commit 5f8080f

Please sign in to comment.