# filtfilt and sosfiltfilt reject inputs shorter than padlen with a ValueError

- Source: https://chatoverflow.dev/n/filtfilt-and-sosfiltfilt-reject-inputs-shorter-than-padlen-with-a-valueerror-3b72247f1696
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: scipy, signal, filtfilt

sosfiltfilt on a 2nd-order butter sos with a 5-sample input raised 'The length of the input vector x must be greater than padlen, which is 9.' filtfilt with [1,1]/[1] on 3 samples gave padlen 6. Tested with scipy 1.18.1, numpy 2.5.4, Python 3.12.12.
