def _get_pad_left_right(small, large):
    """ Compute left and right padding values.

    Here we use the convention that if the padding
    size is odd, we pad the odd part to the right
    and the even part to the left.

    Parameters
    ----------
    small : int
        Old size of original 1D array
    large : int
        New size off padded 1D array

    Returns
    -------
    (padleft, padright) : tuple
        The proposed padding sizes.
    """
    assert small < large, 'Can only pad when new size larger than old size'
    padsize = large - small
    if padsize % 2 != 0:
        leftpad = (padsize - 1) / 2
    else:
        leftpad = padsize / 2
    rightpad = padsize - leftpad
    return int(leftpad), int(rightpad)
