if abs(dt - dt1) > 1e-10:
            warnings.warn('Data is not uniformly sampled!')