bundles / scipy latest / scipy / signal / _peak_finding / _arg_wlen_as_expected
function
scipy.signal._peak_finding:_arg_wlen_as_expected
source: build-install/usr/lib/python3.14/site-packages/scipy/signal/_peak_finding.py:298
Signature
def _arg_wlen_as_expected(value)Summary
Ensure argument wlen is of type np.intp and larger than 1.
Extended Summary
Used in peak_prominences and peak_widths.
Returns
value: np.intpThe original
valuerounded up to an integer or -1 ifvaluewas None.
Aliases
scipy.signal._peak_finding._arg_wlen_as_expected