Skip to content

Commit

Permalink
Fix angle typo
Browse files Browse the repository at this point in the history
  • Loading branch information
samirelanduk committed Jan 17, 2019
1 parent 8d12119 commit 8da00c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atomium/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ def angle(self, atom1, atom2):
] for atom in (atom1, atom2)]
normalized = [np.linalg.norm(v) for v in vectors]
if 0 in normalized: return 0
vectors = [v / n for n, v in zip(vectors, normalized)]
vectors = [v / n for v, n in zip(vectors, normalized)]
return np.arccos(np.clip(np.dot(vectors[0], vectors[1]), -1.0, 1.0))


Expand Down

0 comments on commit 8da00c6

Please sign in to comment.