darfix.core.array_utils.unique#

darfix.core.array_utils.unique(ar, return_index=False, **kw)[source]#

Returns the unique elements of an array while preserving their order.

The signature of this function is the same as numpy.unique.

Parameters:
  • ar (Sequence)

  • return_index (bool)

Return type:

Union[Tuple[ndarray], ndarray]