Skip to content

Commit

Permalink
Merge pull request #540 from duncanhobbs/lgtm-warning-arma
Browse files Browse the repository at this point in the history
Fix lgtm warning for arma.py.
  • Loading branch information
jstac committed May 9, 2020
2 parents af72950 + 4aa16cc commit b722605
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions quantecon/arma.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"""
import numpy as np
from numpy import conj
from .util import check_random_state


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

return w, spect

Expand Down

0 comments on commit b722605

Please sign in to comment.