def maxima ( signal, window_size=51 ):
    #data1 = savitzky_golay(signal, window_size, order=2, deriv=1)
    #data2 = savitzky_golay(signal, window_size, order=2, deriv=2)
    #m = np.where(np.diff(np.sign( data1 )) <= -1)[0].astype('int32')

    #data1 = savitzky_golay_order2(signal, window_size, deriv=1)
    data1 = savitzky_golay(signal, window_size, order=2, deriv=1)
    m = np.where( np.diff( np.sign( data1 ) ) <= -1)[0].astype('int32')
    #m = np.where( np.logical_and( data2 < 0 , abs(data1) <= 1e-10) ) [0].astype('int32')
    return m
Initializes and validates the values for our Batch Header
dataset/ETHPy150Open taoliu/MACS/test/test_callsummits.py/maxima--crossover with--dataset/ETHPy150Open travishathaway/python-ach/ach/data_types.py/BatchHeader.__init__