glue.utils.array.
unique
Return the unique elements of the array U, as well as the index array I such that U[I] == array
array : numpy.ndarray
The array to use
U : numpy.ndarray
The unique elements of the array
I : numpy.ndarray
The indices such that U[I] == array
U[I] == array