Closed hyruuk closed 4 years ago
mne.read_events is to read MNE events which are fif files or basic txt files and not BIDS tsv files which were standardized years after MNE formats.
for reading bids data use mne-bids
Please take a look at this example:
It's not very discoverable at the moment. We are working on creating a separate example for this.
Please take a look at this example:
It's not very discoverable at the moment. We are working on creating a separate example for this.
Unfortunately, the link does not seem to work anymore. Was the example moved somewhere else?
I suppose it is now here: https://github.com/mne-tools/mne-bids/blob/master/examples/convert_mne_sample.py
Rendered version is here:
https://mne.tools/mne-bids/stable/auto_examples/convert_mne_sample.html
Hi !
I converted my data to BIDS format from the CTF MEG format (.ds) using MNE-BIDS. That created a set of files including {BIDS-structure}_events.tsv files for each recording. I now want to load the events into an MNE events array. However, the mne.read_events() function doesn't seem to work on these files. When called, it returns the following error :
I assume it's because of the headers in the tsv formatted file, but I would expect this function to be able to read these. Is there a way to easily load these files into MNE events format (without using find_events on the raw data file) ?