BUG: signal.csd: doesn't zero-pad for different size inputs in 1.16.0rc1 #23036
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
scipy.signal
Milestone
Describe your issue.
The
scipy.signal.csd
function in 1.16.0rc1 advertises the following (as it has done forever):scipy/scipy/signal/_spectral_py.py
Lines 750 to 751 in f89e948
However, it seems like since #22460 the zero-padding isn't actually applied, and an error is raised because the
ShortTimeFFT
attempts to access a slice that it thinks it can't get to. Error details below.P.S. I would be very happy to be told this is user error and it never should have worked. Thanks for supporting scipy, it's great.
Reproducing Code Example
Error message
SciPy/NumPy/Python version and system information
The text was updated successfully, but these errors were encountered: