'Restrict SourceEstimate to a time interval.
Parameters
tmin : float | None
The first time point in seconds. If None the first present is used.
tmax : float | None
The last time point in seconds. If None the last present is used.'

def crop(self, tmin=None, tmax=None):

    mask = _time_mask(self.times, tmin, tmax, sfreq=self.sfreq)
    self.tmin = self.times[np.where(mask)[0][0]]
    if ((self._kernel is not None) and (self._sens_data is not None)):
        self._sens_data = self._sens_data[:, mask]
    else:
        self.data = self.data[:, mask]
    return self
