mne_analysis@nmr.mgh.harvard.edu

Hello,

I'm just starting to learn about Python and I try to use MNE especially
with Brainvision Raw Data
I encounter a problem during the call of "read_raw_brainvision" in the
script below

import mne
from mne.fiff import brainvision

vdhr_fname = '10-MD10/MD10_EEG/MD10/MD10.vhdr'
raw = brainvision.read_raw_brainvision(vdhr_fname, elp_fname=None,
ch_names=None, preload=False, verbose=None)

and here my output error :

Extracting eeg Parameters from 10-MD10/MD10_EEG/MD10/MD10.vhdr...
Setting channel info structure...
Traceback (most recent call last):
  File "selection.py", line 9, in <module>
    ch_names=None, preload=False, verbose=None)
  File
"/usr/local/lib/python2.7/dist-packages/mne/src/mne/mne/fiff/brainvision/brainvision.py",
line 682, in read_raw_brainvision
    reference, eog, ch_names, verbose)
  File "<string>", line 2, in __init__
  File "/usr/local/lib/python2.7/dist-packages/mne/src/mne/mne/utils.py",
line 392, in verbose
    ret = function(*args, **kwargs)
  File
"/usr/local/lib/python2.7/dist-packages/mne/src/mne/mne/fiff/brainvision/brainvision.py",
line 84, in __init__
    reference, eog)
  File
"/usr/local/lib/python2.7/dist-packages/mne/src/mne/mne/fiff/brainvision/brainvision.py",
line 639, in _get_eeg_info
    events = _read_vmrk_events(eeg_info['marker_id'])
  File
"/usr/local/lib/python2.7/dist-packages/mne/src/mne/mne/fiff/brainvision/brainvision.py",
line 321, in _read_vmrk_events
    trigger = int(re.findall('S\s?(\d+)', mdesc)[0])
*IndexError: list index out of range*

Exit code: 1

MD10.vhdr and MD10.vmrk are in the same directory

What could be the origins of this kind of error ?
I'm sure the solution should be obvious but i don't succeed to find it.

I hope that my explanations are clear.
Thank you in advance for your help,

Best regards,
Ma?l Garnotel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20140318/72746661/attachment.html

hi Ma?l,

can you make the file public and open an issue on github
so we can follow up on this bug(?).

https://github.com/mne-tools/mne-python/issues?state=open

thanks
Alex