[Mne_analysis] mne_analysis at nmr.mgh.harvard.edu

Alexandre Gramfort alexandre.gramfort at telecom-paristech.fr
Tue Mar 18 08:05:13 EDT 2014
Search archives:

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

On Tue, Mar 18, 2014 at 11:04 AM, Maël Garnotel <mael.garnotel at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>




More information about the Mne_analysis mailing list