fixed get_unique_unsorted(), such that it restores the initial order of the array
@@ -26,6 +26,4 @@ def get_unique_unsorted(array):
"""
u, indices = np.unique(array, return_index=True)
temp = indices.argsort()
- ranks = np.empty_like(temp)
- ranks[temp] = np.arange(len(indices))
- return u[ranks]
+ return u[temp]
