forked from scipy/scipy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: stats: use renamed
_biasedurn
and add deprecation warning
- Loading branch information
1 parent
3928e43
commit a0593f9
Showing
8 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This file is not meant for public use and will be removed in SciPy v2.0.0. | ||
|
||
|
||
import warnings | ||
from . import _biasedurn | ||
|
||
|
||
__all__ = [ # noqa: F822 | ||
'_PyFishersNCHypergeometric', | ||
'_PyWalleniusNCHypergeometric', | ||
'_PyStochasticLib3' | ||
] | ||
|
||
|
||
def __dir__(): | ||
return __all__ | ||
|
||
|
||
def __getattr__(name): | ||
if name not in __all__: | ||
raise AttributeError( | ||
"scipy.stats.biasedurn is deprecated and has no attribute " | ||
f"{name}.") | ||
|
||
warnings.warn("the `scipy.stats.biasedurn` namespace is deprecated and " | ||
"will be removed in SciPy v2.0.0.", | ||
category=DeprecationWarning, stacklevel=2) | ||
|
||
return getattr(_biasedurn, name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters