if dt is not None:
            spec.resample(dt)