def _my_hilbert(x, n_fft=None, envelope=False):
    from scipy.signal import hilbert
    n_fft = x.shape[-1] if n_fft is None else n_fft
    n_x = x.shape[-1]
    out = hilbert(x, N=n_fft)[:n_x]
    if envelope is True:
        out = np.abs(out)
    return out
Find the unique values of input data.
dataset/ETHPy150Open mne-tools/mne-python/mne/io/base.py/_my_hilbert--crossover with--dataset/ETHPy150Open apache/climate/ocw/data_source/rcmed.py/_make_unique