添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
干练的罐头  ·  unexpected end of ...·  2 年前    · 
无聊的槟榔  ·  python - 在 Python ...·  2 年前    · 
忧郁的冲锋衣  ·  Inputstream ...·  2 年前    · 
仗义的苹果  ·  PyQt5挖坑_class ...·  2 年前    · 

Error message wording when n_fft is larger than length of the input #1214

Closed
@bshall

Description

BEFORE POSTING A BUG REPORT Please look through existing issues (both open and closed) to see if it's already been reported or fixed!

Describe the bug
The error/warning message when n_fft is larger than the length of the input seems to be the wrong way around. Currently, I get
n_fft=2048 is too small for input signal of length=512 . Shouldn't it be n_fft=2048 is too *large* for input signal of length=512 ?

To Reproduce

import librosa
y = librosa.tone(220, length=512)
librosa.stft(y, center=False)

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Software versions*
INSTALLED VERSIONS

python: 3.8.3 (default, Jul 2 2020, 16:21:59)
[GCC 7.3.0]

librosa: 0.8.0

audioread: 2.1.8
numpy: 1.19.1
scipy: 1.5.2
sklearn: 0.23.1
joblib: 0.16.0
decorator: 4.4.2
soundfile: 0.10.3
resampy: 0.2.2
numba: 0.50.1

numpydoc: None
sphinx: None
sphinx_rtd_theme: None
sphinxcontrib.versioning: None
sphinx-gallery: None
pytest: None
pytest-mpl: None
pytest-cov: None
matplotlib: 3.3.0
presets: None