Skip to content

Commit

Permalink
Replaced atan2 with np.arctan2 for consistency in package/MDAnalysis/…
Browse files Browse the repository at this point in the history
…analysis/nuclinfo.py
  • Loading branch information
tanishy7777 committed Dec 13, 2024
1 parent e4bbca9 commit d5b25f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/MDAnalysis/analysis/nuclinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"""
import numpy as np
from math import pi, sin, cos, atan2, sqrt, pow
from math import pi, sin, cos, sqrt, pow

from MDAnalysis.lib import mdamath

Expand Down Expand Up @@ -368,7 +368,7 @@ def phase_as(universe, seg, i):
+ (data4 * cos(2 * 2 * pi * (4 - 1.) / 5.))
+ (data5 * cos(2 * 2 * pi * (5 - 1.) / 5.))) * 2. / 5.

phase_ang = atan2(B, A) * 180. / pi
phase_ang = np.arctan2(B, A) * 180. / pi
return phase_ang % 360


Expand Down

0 comments on commit d5b25f6

Please sign in to comment.