def shift_to_include_gamma(mp_grid):
    """ Calculate the shift required to include $\\Gamma$.
    in the Monkhorst-Pack grid.

    Parameters:
        mp_grid (:obj:`list` of :obj:`int`): number of grid points
            in each reciprocal space direction.

    Returns:
        :obj:`list` of :obj:`float`: shift required to include $\\Gamma$.

    """
    shift = [0, 0, 0]
    for ind, val in enumerate(mp_grid):
        if val % 2 == 0:
            shift[ind] = 1.0/(val*2)
    return shift