def METHOD_NAME(trials):
    on = 'stimOn_times'
    off = 'stimOff_times'
    trials[off] = np.zeros(shape=trials[on].shape)
    correct_trials = trials['feedbackType'] == 1
    u = trials['feedback_times'][correct_trials] + 1.0
    trials[off][correct_trials] = u
    error_trials = trials['feedbackType'] == -1
    v = trials['feedback_times'][error_trials] + 2.0
    trials[off][error_trials] = v