Skip to content
Open
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
12 changes: 8 additions & 4 deletions quantecon/rank_nullspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import warnings
from . import _rank_nullspace

_warning_issued = set()


__all__ = ['rank_est', 'nullspace']

Expand All @@ -20,9 +22,11 @@ def __getattr__(name):
f" '{name}'."
)

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

return getattr(_rank_nullspace, name)