biasedurn.py 690 B

1234567891011121314151617181920212223242526272829
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. import warnings
  3. from . import _biasedurn
  4. __all__ = [ # noqa: F822
  5. '_PyFishersNCHypergeometric',
  6. '_PyWalleniusNCHypergeometric',
  7. '_PyStochasticLib3'
  8. ]
  9. def __dir__():
  10. return __all__
  11. def __getattr__(name):
  12. if name not in __all__:
  13. raise AttributeError(
  14. "scipy.stats.biasedurn is deprecated and has no attribute "
  15. f"{name}.")
  16. warnings.warn("the `scipy.stats.biasedurn` namespace is deprecated and "
  17. "will be removed in SciPy v2.0.0.",
  18. category=DeprecationWarning, stacklevel=2)
  19. return getattr(_biasedurn, name)