def peaks_with_signal(peaks, signal_range):
    """Returns peaks with at least one peak in signal_range

    Parameters
    ----------
    peaks: 2D array of peaks
    signal_range: tuple(float)
        (min, max) of signal window

    Returns
    -------
    peaks_with_signal: 2D np.array
    """
    peaks_with_signal = []
    for peak in peaks:
        got_signal = False
        for p in peak:
            if p > signal_range[0] and p < signal_range[1]:
                got_signal = True
        if got_signal:
            peaks_with_signal.append(peak)
    return peaks_with_signal