Skip to content

Commit e9e3214

Browse files
authored
Remove warnings supression as noted by Issue #229 (#231)
* Remove warnings supression as noted by Issue #229 * remove the import of warnings module as not needed now
1 parent 6da6bfe commit e9e3214

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

quantecon/arma.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@
44
55
Provides functions for working with and visualizing scalar ARMA processes.
66
7+
TODO: 1. Fix warnings concerning casting complex variables back to floats
8+
79
"""
810
import numpy as np
911
from numpy import conj, pi
1012
import matplotlib.pyplot as plt
1113
from scipy.signal import dimpulse, freqz, dlsim
1214

13-
# == Ignore unnecessary warnings concerning casting complex variables back to
14-
# floats == #
15-
import warnings
16-
warnings.filterwarnings('ignore')
17-
1815

1916
class ARMA(object):
2017
r"""

quantecon/matrix_eqn.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@
77
* Lyapunov Equations
88
* Ricatti Equations
99
10-
TODO: See issue 47 on github repository, should add support for
10+
TODO: 1. See issue 47 on github repository, should add support for
1111
Sylvester equations
12-
12+
2. Fix warnings from checking conditioning of matrices
1313
"""
1414
from __future__ import division
1515
import numpy as np
16-
import warnings
1716
from numpy import dot
1817
from numpy.linalg import solve
1918
from scipy.linalg import solve_discrete_lyapunov as sp_solve_discrete_lyapunov
2019

21-
# == Suppress warnings from checking conditioning of matrices == #
22-
warnings.simplefilter("ignore", RuntimeWarning)
23-
2420

2521
def solve_discrete_lyapunov(A, B, max_it=50, method="doubling"):
2622
r"""

0 commit comments

Comments
 (0)