def normalize_slots(slots):
    if slots is None:
        return []
    slots_n = len(slots)
    if slots_n < 2:
        return slots

    normalized_s = []
    s = slots[0]
    t = slots[1]
    s_i = 0
    t_i = 1

    while s_i < slots_n:

        if s[1] < t[0]:
            # ### CASE A
            normalized_s.append(s)
            s = t

        if (s[0] <= t[0]) and (s[1] <= t[1]):
            # ### CASE B
            s = (s[0], t[1])

        # ### CASE C and next iteration
        if t_i < (slots_n - 1):
            t_i += 1
            t = slots[t_i]
            continue
        else:
            # ### last vectors
            normalized_s.append(s)
            break

    return normalized_s
Scales the geometry to a new size by multiplying the ordinates
dataset/ETHPy150Open satnet-project/server/services/common/slots.py/normalize_slots--crossover with--dataset/ETHPy150Open django/django/django/contrib/gis/db/models/query.py/GeoQuerySet.scale