From e9e32146d105097c4d638bfcd341c88c2356b5f6 Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 10 Nov 2016 16:44:28 +1100 Subject: [PATCH] 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 --- quantecon/arma.py | 7 ++----- quantecon/matrix_eqn.py | 8 ++------ 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/quantecon/arma.py b/quantecon/arma.py index 0fa02f8d4..56ba60e52 100644 --- a/quantecon/arma.py +++ b/quantecon/arma.py @@ -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""" diff --git a/quantecon/matrix_eqn.py b/quantecon/matrix_eqn.py index 3545b3da1..322a5571d 100644 --- a/quantecon/matrix_eqn.py +++ b/quantecon/matrix_eqn.py @@ -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"""