def count_number_overrides_excluding_repeated(override_times,
    override_values, post_override_time_to_exclude):
    """
        In order to do checks to see how the overrides are calibrated we need to filter any repeated overrides otherwise they will be double counted
        there are probably issues with this because of cases like multuple overrides in a row where eventually they will extend past the post_override_time_to_exclude bit
        assumes override_times and override_values have already been condensed to times when the value changes
    """
    override_to_on_ct = 0
    override_to_off_ct = 0
    last_override_time = None
    for i in range(len(override_times)):
        cur_time = override_times[i]
        cur_value = override_values[i]
        if (last_override_time is None or cur_time > last_override_time +
            post_override_time_to_exclude):
            last_override_time = cur_time
            if cur_value == 0:
                override_to_off_ct += 1
            else:
                override_to_on_ct += 1
    return override_to_on_ct, override_to_off_ct
