[Mne_analysis] Brainvision events

Daniel Cabral dac0069 at auburn.edu
Tue Sep 22 10:20:01 EDT 2020
Search archives:

        External Email - Use Caution        

Hi,
I have been struggling to find the events from my files. Here is what I've got so far:
I am attaching a vhdr file with the markers
import mne

mne.set_log_level('WARNING')
fname = "go.nogo.01.vhdr"
raw = mne.io.read_raw_brainvision(fname, preload=True)

montage = mne.channels.make_standard_montage('standard_1020')raw.set_montage(montage, raise_if_subset = False)

ica = mne.preprocessing.ICA(n_components=15, random_state=97)
ica.fit(raw.copy().filter(1,40))
ica.plot_sources(raw);
ica.plot_components()

raw = ica.apply(raw.copy(), exclude = ica.exclude)

raw.plot();

events = mne.events_from_annotations(raw, event_id='auto')
events;
tmin, tmax = -0.2, 0.5

events_nogo_sed = [88,89,90,91,92,93,94,95,96,97,98,99,100,
                          101,102,103,104,105,106,107,108,109,110,
                          111,112,113]

epochs = mne.Epochs(raw, events, events_nogo_sed, tmin, tmax)


TypeError: events should be a NumPy array of integers, got <class 'tuple'>




Daniel Cabral.

PhD student
Graduate Teaching Assistant
Performance and Exercise Psychophysiology lab
School of Kinesiology
Auburn University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200922/73ac520e/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: go.nogo.01.vmrk
Type: application/octet-stream
Size: 61508 bytes
Desc: go.nogo.01.vmrk
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200922/73ac520e/attachment-0001.obj 


More information about the Mne_analysis mailing list