crop_pad

crop_pad(inst: BaseRaw | BaseEpochs | Evoked, pad: str, copy: bool = False) BaseRaw | BaseEpochs | Evoked[source][source]

Crop and pad an instance.

Parameters:
  • inst (instance of Raw, Epochs, or Evoked) – The instance to crop and pad.

  • pad (str) – The amount of time to pad the instance. If a string, it must be a human-readable time, e.g. “10s”.

  • copy (bool, optional) – If True, a copy of x, filtered, is returned. Otherwise, it operates on x in place. Defaults to False.

Returns:

inst – The cropped and de-padded instance.

Return type:

instance of Raw, Epochs, or Evoked

Examples using ieeg.timefreq.utils.crop_pad

High Gamma Filter

High Gamma Filter

PCA-LDA Decoding

PCA-LDA Decoding

Time and Frequency Permutation Cluster Statistics

Time and Frequency Permutation Cluster Statistics

Joint pca decoding

Joint pca decoding

Multitaper spectrogram plot

Multitaper spectrogram plot

Morlet Wavelet spectrogram plot

Morlet Wavelet spectrogram plot

Morlet Wavelet spectrogram plot

Morlet Wavelet spectrogram plot

Time Permutation Cluster Statistics

Time Permutation Cluster Statistics