This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / signal / _peak_finding / _unpack_condition_args

function

scipy.signal._peak_finding:_unpack_condition_args

source: build-install/usr/lib/python3.14/site-packages/scipy/signal/_peak_finding.py:596

Signature

def _unpack_condition_args(interval, x, peaks)

Summary

Parse condition arguments for find_peaks.

Parameters

interval : number or ndarray or sequence

Either a number or ndarray or a 2-element sequence of the former. The first value is always interpreted as imin and the second, if supplied, as imax.

x : ndarray

The signal with peaks.

peaks : ndarray

An array with indices used to reduce imin and / or imax if those are arrays.

Returns

imin, imax : number or ndarray or None

Minimal and maximal value in argument.

Raises

: ValueError

If interval border is given as array and its size does not match the size of x.

Notes

Aliases

  • scipy.signal._peak_finding._unpack_condition_args