def separation_in_list(separation_indices, separation_indices_list):
    """
    Checks if the separation indices of a plane are already in the list
    :param separation_indices: list of separation indices (three arrays of integers)
    :param separation_indices_list: list of the list of separation indices to be compared to
    :return: True if the separation indices are already in the list, False otherwise
    """
    sorted_separation = sort_separation(separation_indices)
    for sep in separation_indices_list:
        if len(sep[1]) == len(sorted_separation[1]) and np.allclose(sorted_separation[1], sep[1]):
            return True
    return False
def separation_in_list ( separation_indices , separation_indices_list ) : sorted_separation = sort_separation ( separation_indices ) for sep in separation_indices_list : if len ( sep [ 1 ] ) == len ( sorted_separation [ 1 ] ) and np . allclose ( sorted_separation [ 1 ] , sep [ 1 ] ) : return True return False
Checks if the separation indices of a plane are already in the list
    :param separation_indices: list of separation indices (three arrays of integers)
    :param separation_indices_list: list of the list of separation indices to be compared to
    :return: True if the separation indices are already in the list, False otherwise