specfun.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. # Use the `scipy.special` namespace for importing the functions
  3. # included below.
  4. import warnings
  5. from . import _specfun # type: ignore
  6. __all__ = [ # noqa: F822
  7. 'airyzo',
  8. 'bernob',
  9. 'cerzo',
  10. 'clpmn',
  11. 'clpn',
  12. 'clqmn',
  13. 'clqn',
  14. 'cpbdn',
  15. 'cyzo',
  16. 'eulerb',
  17. 'fcoef',
  18. 'fcszo',
  19. 'jdzo',
  20. 'jyzo',
  21. 'klvnzo',
  22. 'lamn',
  23. 'lamv',
  24. 'lpmn',
  25. 'lpn',
  26. 'lqmn',
  27. 'lqnb',
  28. 'pbdv',
  29. 'rctj',
  30. 'rcty',
  31. 'segv'
  32. ]
  33. def __dir__():
  34. return __all__
  35. def __getattr__(name):
  36. if name not in __all__:
  37. raise AttributeError(
  38. "scipy.special.specfun is deprecated and has no attribute "
  39. f"{name}. Try looking in scipy.special instead.")
  40. warnings.warn(f"Please use `{name}` from the `scipy.special` namespace, "
  41. "the `scipy.special.specfun` namespace is deprecated.",
  42. category=DeprecationWarning, stacklevel=2)
  43. return getattr(_specfun, name)