'Resample data.
Parameters
sfreq : float
New sample rate to use.
npad : int | str
Amount to pad the start and end of the data.
Can also be "auto" to use a padding that will result in
a power-of-two size (can be much faster).
window : string or tuple
Window to use in resampling. See scipy.signal.resample.
n_jobs : int
Number of jobs to run in parallel.
verbose : bool, str, int, or None
If not None, override default verbose level (see
:func:`mne.verbose` and :ref:`Logging documentation <tut_logging>`
for more). Defaults to self.verbose.
Notes
For some data, it may be more accurate to use npad=0 to reduce
artifacts. This is dataset dependent -- check your data!
Note that the sample rate of the original data is inferred from tstep.'

@verbose
def resample(self, sfreq, npad='auto', window='boxcar', n_jobs=1, verbose=None):

    self._remove_kernel_sens_data_()
    o_sfreq = (1.0 / self.tstep)
    self.data = resample(self.data, sfreq, o_sfreq, npad, n_jobs=n_jobs)
    self.tstep = (1.0 / sfreq)
    return self
