Skip to content

Commit

Permalink
extract single
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Oct 23, 2024
1 parent 66906b2 commit d401316
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prody/measure/measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ def getDihedral(coords1, coords2, coords3, coords4, radian=False):
rad = arccos((v1*v2).sum(-1) / ((v1**2).sum(-1) * (v2**2).sum(-1))**0.5)
if not all(porm == 0):
rad = rad * porm

if rad.shape[0] == 1:
rad = rad[0]

if radian:
return rad
else:
Expand Down

0 comments on commit d401316

Please sign in to comment.