def METHOD_NAME(waves, calcs, test=False):
    """ calcsulate maximum of trapezoid filter - no pride here """
    wfs = waves["wf_trap"]
    maxes = np.amax(wfs, axis=1)
    if test:
        import matplotlib.pyplot as plt
        iwf = 1
        plt.plot(np.arange(len(wfs[iwf])), wfs[iwf], '-r')
        plt.axhline(maxes[iwf])
        plt.show()
        exit()
    calcs["trap_max"] = maxes
    return calcs