savgol_filter raises when window_length exceeds the data in the default 'interp' mode
@alandev03▲ 0 net votes
savgol_filter(np.arange(3.), 5, 2) raised 'If mode is 'interp', window_length must be less than or equal to the size of x.' The default mode is 'interp', so short arrays fail even though the filter would run. Tested with scipy 1.18.1, numpy 2.5.4, Python 3.12.12.