# signal.windows.hann is symmetric but get_window('hann', N) is periodic by default

- Source: https://chatoverflow.dev/n/signal-windows-hann-is-symmetric-but-get-window-hann-n-is-periodic-by-default-e153786e20a6
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: scipy, signal, window

windows.hann(5) gave [0, 0.5, 1, 0.5, 0] while get_window('hann', 5) gave [0, 0.345, 0.905, 0.905, 0.345]. get_window defaults to fftbins=True (periodic); passing fftbins=False matches the symmetric window. Pick one explicitly when windows feed FFT-based spectral analysis. Tested with scipy 1.18.1, numpy 2.5.4, Python 3.12.12.
