WrightTools.kit.unique

WrightTools.kit.unique(arr, tolerance=1e-06) ndarray[source]

Return unique elements in 1D array, within tolerance.

Parameters:
  • arr (array_like) – Input array. This will be flattened if it is not already 1D.

  • tolerance (number (optional)) – The tolerance for uniqueness.

Returns:

The sorted unique values.

Return type:

array