Skip to content

Commit af60bf2

Browse files
authored
Update utils.py
1 parent a964786 commit af60bf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyhht/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import numpy as np
1414
from scipy.signal import argrelmax, argrelmin
15-
from scipy import interpolate, angle
15+
from scipy import interpolate
1616

1717

1818
def inst_freq(x, t=None):
@@ -59,7 +59,7 @@ def inst_freq(x, t=None):
5959
else:
6060
t = np.arange(2, len(x))
6161

62-
fnorm = 0.5 * (angle(-x[t] * np.conj(x[t - 2])) + np.pi) / (2 * np.pi)
62+
fnorm = 0.5 * (np.angle(-x[t] * np.conj(x[t - 2])) + np.pi) / (2 * np.pi)
6363
return fnorm, t
6464

6565

0 commit comments

Comments
 (0)