def limit_vector(vector,  bottom_limit, upper_limit):
    """
    This function cut the a vector to keep only the values between the bottom_limit and the upper_limit.

    Parameters
    ----------
    vector : list
        The vector that will be cut

    upper_limit : float
        The maximum value of the vector.

    bottom_limit : float
        The minimum value of the vector

    Returns
    -------
    vector : iterable
        The limited vector
    """
    temp = []
    for x in vector:
        if bottom_limit <= x <= upper_limit:
            temp.append(x)
    return temp