if len(tp):
            ind = tp[1::2]  # extract indices to maxima only