Skip to content
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

Remove from future import ... #436

Merged
merged 1 commit into from
Oct 3, 2018
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
2 changes: 0 additions & 2 deletions quantecon/estspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Functions for working with periodograms of scalar data.

"""

from __future__ import division, print_function
import numpy as np
from numpy.fft import fft

Expand Down
2 changes: 0 additions & 2 deletions quantecon/ivp.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
assessing the overall accuracy of the approximated solution.

"""
from __future__ import division

import numpy as np
from scipy import integrate, interpolate

Expand Down
2 changes: 0 additions & 2 deletions quantecon/lqnash.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

from __future__ import division, print_function
import numpy as np
from numpy import dot, eye
from scipy.linalg import solve
Expand Down
1 change: 0 additions & 1 deletion quantecon/markov/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
:math:`\sum_{j \in S_{m+1}} P[i, j] = 1`, where :math:`S_d = S_0`.

"""
from __future__ import division
import numbers
from fractions import gcd
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion quantecon/markov/ddp.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
Programming, Wiley-Interscience, 2005.

"""
from __future__ import division
import warnings
import numpy as np
import scipy.sparse as sp
Expand Down
2 changes: 0 additions & 2 deletions quantecon/markov/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
mc_sample_path [Status: Tested in test_mc_sample_path]

"""
from __future__ import division

import numpy as np
from scipy import sparse
import itertools
Expand Down
2 changes: 0 additions & 2 deletions quantecon/markov/tests/test_ddp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Tests for markov/ddp.py

"""
from __future__ import division

import numpy as np
import scipy.sparse as sparse
from numpy.testing import assert_array_equal, assert_allclose, assert_raises
Expand Down
2 changes: 0 additions & 2 deletions quantecon/markov/tests/test_gth_solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Tests for gth_solve.py

"""
from __future__ import division

import numpy as np
from numpy.testing import assert_array_equal
from nose.tools import eq_, ok_, raises
Expand Down
1 change: 0 additions & 1 deletion quantecon/matrix_eqn.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
Sylvester equations
2. Fix warnings from checking conditioning of matrices
"""
from __future__ import division
import numpy as np
from numpy import dot
from numpy.linalg import solve
Expand Down
2 changes: 0 additions & 2 deletions quantecon/quad.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
and Finance, MIT Press, 2002.

"""
from __future__ import division

import math
import numpy as np
import scipy.linalg as la
Expand Down
1 change: 0 additions & 1 deletion quantecon/robustlq.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Solves robust LQ control problems.

"""
from __future__ import division # Remove for Python 3.sx
from textwrap import dedent
import numpy as np
from .lqcontrol import LQ
Expand Down
1 change: 0 additions & 1 deletion quantecon/tests/test_compute_fp.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
TODO: add multivariate case

"""
from __future__ import division
import unittest
import numpy as np
from nose.tools import ok_, raises
Expand Down
1 change: 0 additions & 1 deletion quantecon/tests/test_ecdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Tests for ecdf.py

"""
from __future__ import division
import unittest
import numpy as np
from quantecon import ECDF
Expand Down
1 change: 0 additions & 1 deletion quantecon/tests/test_estspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
TODO: write tests that check accuracy of returns

"""
from __future__ import division
import unittest
import numpy as np
from quantecon import smooth, periodogram, ar_periodogram
Expand Down
1 change: 0 additions & 1 deletion quantecon/tests/test_lae.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
TODO: write (economically) meaningful tests for this module

"""
from __future__ import division
from nose.tools import assert_equal
import numpy as np
from scipy.stats import lognorm
Expand Down
1 change: 0 additions & 1 deletion quantecon/tests/test_lqnash.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Tests for lqnash.py

"""
from __future__ import division
import sys
import os
import unittest
Expand Down
1 change: 0 additions & 1 deletion quantecon/tests/test_matrix_eqn.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Tests for quantecon.util

"""
from __future__ import division
from collections import Counter
import unittest
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion quantecon/tests/test_quad.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
a section of comments.

"""
from __future__ import division
import os
import unittest
from scipy.io import loadmat
Expand Down