def METHOD_NAME(gamma, q):
    """Bounds parameters.
    :param gamma:
    :param q:
    :return:
    """
    if gamma < 1.4:
        gamma = 1.4
    if gamma > 2.9:
        gamma = 2.9
    if q < 0.01:
        q = 0.01
    return float(gamma), q