Python icon indicating copy to clipboard operation
Python copied to clipboard

[PYTEST WARNING] Equal loudness filter

Open CaedenPH opened this issue 3 years ago • 0 comments

Feature description

@mart Please could you resolve this warning

audio_filters/equal_loudness_filter.py: 34 warnings
  /opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/yulewalker/yulewalker.py:153: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
  Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    j = np.arange(nb, ne).astype(np.int)

audio_filters/equal_loudness_filter.py::audio_filters.equal_loudness_filter.EqualLoudnessFilter.process
  /opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/yulewalker/yulewalker.py:178: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
  Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    nt = np.arange(0, nr).astype(np.int)

origin: #7211

CaedenPH avatar Oct 16 '22 10:10 CaedenPH