windows.py 839 B

1234567891011121314151617181920212223
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. # Use the `scipy.signal.windows` namespace for importing the functions
  3. # included below.
  4. from scipy._lib.deprecation import _sub_module_deprecation
  5. __all__ = [ # noqa: F822
  6. 'boxcar', 'triang', 'parzen', 'bohman', 'blackman', 'nuttall',
  7. 'blackmanharris', 'flattop', 'bartlett', 'barthann',
  8. 'hamming', 'kaiser', 'gaussian', 'general_cosine',
  9. 'general_gaussian', 'general_hamming', 'chebwin', 'cosine',
  10. 'hann', 'exponential', 'tukey', 'taylor', 'dpss', 'get_window',
  11. ]
  12. def __dir__():
  13. return __all__
  14. def __getattr__(name):
  15. return _sub_module_deprecation(sub_package="signal.windows", module="windows",
  16. private_modules=["_windows"], all=__all__,
  17. attribute=name)