Skip to content

Remove warnings supression as noted by Issue #229 #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 10, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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