External Email - Use Caution
I had epoch a continuous signal into -0.7s and 0.7s relative to the
stimulus. Along the pipeline, there is a step to evaluate only the signal
from -0.7s-0s. I would like to confirm whether epochs.crop() is the right
function for this?
The code snippet is as below.
sample_data_folder = mne.datasets.sample.data_path()
sample_data_raw_file = os.path.join(sample_data_folder, 'MEG', 'sample',
raw = mne.io.read_raw_fif(sample_data_raw_file,
events = mne.find_events(raw, stim_channel='STI 014')
epochs = mne.Epochs(raw, events, tmin=-0.7, tmax=0.7,preload=True)
pre_stim_epochs = epochs.copy().crop(tmin=-0.7, tmax=0, include_tmax=True)
Thanks for the time entertaining this question
-------------- next part --------------
An HTML attachment was scrubbed...