Skip to content

Commit

Permalink
MAINT: fix errors and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Smit-create committed Mar 24, 2022
1 parent 23c18cd commit 579763e
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions quantecon/arma.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def __getattr__(name):
)

warnings.warn(f"Please use `{name}` from the `quantecon` namespace, "
"the `quantecon.arma` namespace is deprecated. You can use ",
f"the following instead:\n `from quantecon import {name}`."
"the `quantecon.arma` namespace is deprecated. You can use "
f"the following instead:\n `from quantecon import {name}`.",
category=DeprecationWarning, stacklevel=2)

return getattr(_arma, name)
4 changes: 2 additions & 2 deletions quantecon/ce_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def __getattr__(name):

warnings.warn(f"Please use `{name}` from the `quantecon` namespace, "
"the `quantecon.ce_util` namespace is deprecated. You can "
"use the following instead:\n ",
f"`from quantecon import {name}`."
"use the following instead:\n "
f"`from quantecon import {name}`.",
category=DeprecationWarning, stacklevel=2)

return getattr(_ce_util, name)
4 changes: 2 additions & 2 deletions quantecon/compute_fp.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def __getattr__(name):

warnings.warn(f"Please use `{name}` from the `quantecon` namespace, "
"the `quantecon.compute_fp` namespace is deprecated. You "
"can use the following instead:\n ",
f"`from quantecon import {name}`."
"can use the following instead:\n "
f"`from quantecon import {name}`.",
category=DeprecationWarning, stacklevel=2)

return getattr(_compute_fp, name)
4 changes: 2 additions & 2 deletions quantecon/discrete_rv.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def __getattr__(name):

warnings.warn(f"Please use `{name}` from the `quantecon` namespace, "
"the `quantecon.discrete_rv` namespace is deprecated. You "
"can use the following instead:\n ",
f"`from quantecon import {name}`."
"can use the following instead:\n "
f"`from quantecon import {name}`.",
category=DeprecationWarning, stacklevel=2)

return getattr(_discrete_rv, name)
4 changes: 2 additions & 2 deletions quantecon/ecdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def __getattr__(name):
)

warnings.warn(f"Please use `{name}` from the `quantecon` namespace, "
"the `quantecon.ecdf` namespace is deprecated. You can use ",
f"the following instead:\n `from quantecon import {name}`."
"the `quantecon.ecdf` namespace is deprecated. You can use "
f"the following instead:\n `from quantecon import {name}`.",
category=DeprecationWarning, stacklevel=2)

return getattr(_ecdf, name)
2 changes: 1 addition & 1 deletion quantecon/game_theory/mclennan_tourky.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""
import numbers
import numpy as np
from ..compute_fp import _compute_fixed_point_ig
from quantecon._compute_fp import _compute_fixed_point_ig
from .normal_form_game import pure2mixed
from .utilities import NashResult

Expand Down
2 changes: 1 addition & 1 deletion quantecon/game_theory/normal_form_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
import numpy as np
from numba import jit

from ..util import check_random_state
from quantecon.util import check_random_state


class Player:
Expand Down
4 changes: 2 additions & 2 deletions quantecon/game_theory/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import numpy as np

from .normal_form_game import Player, NormalFormGame
from ..util import check_random_state
from ..random import probvec
from quantecon.util import check_random_state
from quantecon.random import probvec


def random_game(nums_actions, random_state=None):
Expand Down
4 changes: 2 additions & 2 deletions quantecon/game_theory/support_enumeration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"""
import numpy as np
from numba import jit
from ..util.numba import _numba_linalg_solve
from ..util.combinatorics import next_k_array
from quantecon.util.numba import _numba_linalg_solve
from quantecon.util.combinatorics import next_k_array


def support_enumeration(g):
Expand Down
2 changes: 1 addition & 1 deletion quantecon/quad.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import numpy as np
import scipy.linalg as la
from numba import jit, vectorize
from .ce_util import ckron, gridmake
from ._ce_util import ckron, gridmake
from .util import check_random_state

__all__ = ['qnwcheb', 'qnwequi', 'qnwlege', 'qnwnorm', 'qnwlogn',
Expand Down

0 comments on commit 579763e

Please sign in to comment.