def get_exclude_vars(exclude_grp):
    """
    get the variables_to_log to exclude for the exclude group
    :param exclude_grp: [dict] dictionary representing the exclude group from
    the exclude yml file
    :return: [list] variables_to_log to exclude
    """
    variable = exclude_grp.get("variable")
    if not variable or variable == "both":
        return ["seg_tave_water", "seg_outflow"]
    elif variable == "temp":
        return ["seg_tave_water"]
    elif variable == "flow":
        return ["seg_outflow"]
    else:
        raise ValueError("exclude variable must be flow, temp, or both")