Skip to content

Commit b722605

Browse files
authored
Merge pull request #540 from duncanhobbs/lgtm-warning-arma
Fix lgtm warning for arma.py.
2 parents af72950 + 4aa16cc commit b722605

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

quantecon/arma.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
66
"""
77
import numpy as np
8-
from numpy import conj
98
from .util import check_random_state
109

1110

@@ -206,7 +205,7 @@ def spectral_density(self, two_pi=True, res=1200):
206205
"""
207206
from scipy.signal import freqz
208207
w, h = freqz(self.ma_poly, self.ar_poly, worN=res, whole=two_pi)
209-
spect = h * conj(h) * self.sigma**2
208+
spect = h * np.conj(h) * self.sigma**2
210209

211210
return w, spect
212211

0 commit comments

Comments
 (0)