Skip to content

Commit

Permalink
Remove warnings supression as noted by Issue #229 (#231)
Browse files Browse the repository at this point in the history
* Remove warnings supression as noted by Issue #229

* remove the import of warnings module as not needed now
  • Loading branch information
mmcky authored Nov 10, 2016
1 parent 6da6bfe commit e9e3214
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
7 changes: 2 additions & 5 deletions quantecon/arma.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@
Provides functions for working with and visualizing scalar ARMA processes.
TODO: 1. Fix warnings concerning casting complex variables back to floats
"""
import numpy as np
from numpy import conj, pi
import matplotlib.pyplot as plt
from scipy.signal import dimpulse, freqz, dlsim

# == Ignore unnecessary warnings concerning casting complex variables back to
# floats == #
import warnings
warnings.filterwarnings('ignore')


class ARMA(object):
r"""
Expand Down
8 changes: 2 additions & 6 deletions quantecon/matrix_eqn.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,16 @@
* Lyapunov Equations
* Ricatti Equations
TODO: See issue 47 on github repository, should add support for
TODO: 1. See issue 47 on github repository, should add support for
Sylvester equations
2. Fix warnings from checking conditioning of matrices
"""
from __future__ import division
import numpy as np
import warnings
from numpy import dot
from numpy.linalg import solve
from scipy.linalg import solve_discrete_lyapunov as sp_solve_discrete_lyapunov

# == Suppress warnings from checking conditioning of matrices == #
warnings.simplefilter("ignore", RuntimeWarning)


def solve_discrete_lyapunov(A, B, max_it=50, method="doubling"):
r"""
Expand Down

0 comments on commit e9e3214

Please sign in to comment.