Skip to content

Commit 1e757ec

Browse files
authored
Merge pull request #474 from okuchap/bugfix
Fix alerts by lgtm
2 parents a1d00e7 + 11abefb commit 1e757ec

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

quantecon/compute_fp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ def compute_fixed_point(T, v, error_tol=1e-3, max_iter=50, verbose=2,
120120

121121
# method == 'iteration'
122122
iterate = 0
123-
error = error_tol + 1
124123

125124
if verbose == 2:
126125
start_time = time.time()

quantecon/estspec.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ def ar_periodogram(x, window='hanning', window_len=7):
146146
# === compute periodogram on residuals === #
147147
w, I_w = periodogram(e_hat, window=window, window_len=window_len)
148148

149-
# === compute periodogram on residuals === #
150-
w, I_w = periodogram(e_hat, window=window, window_len=window_len)
151-
152149
# === recolor and return === #
153150
I_w = I_w / np.abs(1 - phi * np.exp(1j * w))**2
154151

quantecon/game_theory/repeated_game.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ def _equilibrium_payoffs_abreu_sannikov(rpg, tol=1e-12, max_iter=500,
122122
raise NotImplementedError(msg)
123123

124124
best_dev_gains = _best_dev_gains(rpg)
125-
C = np.empty((4, 2))
126125
IC = np.empty(2)
127126
action_profile_payoff = np.empty(2)
128127
# auxiliary array for checking if payoff is inside the convex hull

0 commit comments

Comments
 (0)