Skip to content

Commit

Permalink
Update nuclinfo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohitthakan authored May 29, 2024
1 parent bf7263d commit 4956f3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package/MDAnalysis/analysis/nuclinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,10 @@ def phase_as(universe, seg, i):
q2_norm = sqrt(pow(q2[0], 2) + pow(q2[1], 2) + pow(q2[2], 2))
q3_norm = sqrt(pow(q3[0], 2) + pow(q3[1], 2) + pow(q3[2], 2))

phase_ang = (atan2(q3_norm.item(), q2_norm.item())) * 180. / pi
B = q3_norm.item()
A = q2_norm.item()

phase_ang = (atan2(B, A)) * 180. / pi

return phase_ang % 360

Expand Down

0 comments on commit 4956f3d

Please sign in to comment.