Quanlse/Calibration/Readout.py
def findFreq(y: Iterable) -> Tuple[ndarray, dict]:
    """
    Find the index of the peak.

    :param y: a list of signals.
    :return: the index of the peak.
    """

    yMax = max(y)
    yHalf = yMax / 2

    idx = find_peaks(y, height=yHalf)

    return idx

    Find the index of the peak.

    :param y: a list of signals.
    :return: the index of the peak.
    
Find the index of the peak.
Find the index of the peak .
def findFreq(y: Iterable) -> Tuple[ndarray, dict]:
    yMax = max(y)
    yHalf = yMax / 2
    idx = find_peaks(y, height=yHalf)
    return idx
def findFreq ( y : Iterable ) -> Tuple [ ndarray , dict ] : yMax = max ( y ) yHalf = yMax / 2 idx = find_peaks ( y , height = yHalf ) return idx
Find the index of the peak.
Find the index of the peak .
"""
    Find the index of the peak.

    :param y: a list of signals.
    :return: the index of the peak.
    """
the index of the peak.
the index of the peak .
y
Iterable
a list of signals.
a list of signals .