[Mne_analysis] Assertion error when running mne.io.read_raw_brainvision

Eric Larson larson.eric.d at gmail.com
Fri Apr 22 19:34:39 EDT 2016
Search archives:

I believe this issue has been fixed in latest master, can you give it a try?

Eric


On Fri, Apr 22, 2016 at 4:18 PM, Gladia Hotan <gladiach at gmail.com> wrote:

> Hi,
>
> I'm trying to open a vhdr file in Python. When I do
>
> raw = mne.io.read_raw_brainvision(<filename>)
>
> I get this error:
> Traceback (most recent call last):
>   File "/usr/pubsw/packages/python/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 3035, in run_code
>     exec(code_obj, self.user_global_ns, self.user_ns)
>   File "<ipython-input-4-1ae38f69fbbe>", line 1, in <module>
>     mne.io.read_raw_brainvision(filename)
>   File "/usr/pubsw/packages/python/anaconda/lib/python2.7/site-packages/mne/io/brainvision/brainvision.py", line 624, in read_raw_brainvision
>     preload=preload, verbose=verbose)
>   File "<string>", line 2, in __init__
>   File "/usr/pubsw/packages/python/anaconda/lib/python2.7/site-packages/mne/utils.py", line 541, in verbose
>     return function(*args, **kwargs)
>   File "/usr/pubsw/packages/python/anaconda/lib/python2.7/site-packages/mne/io/brainvision/brainvision.py", line 80, in __init__
>     info, self._eeg_info, events = _get_eeg_info(vhdr_fname, eog, misc)
>   File "/usr/pubsw/packages/python/anaconda/lib/python2.7/site-packages/mne/io/brainvision/brainvision.py", line 406, in _get_eeg_info
>     assert l == 'Brain Vision Data Exchange Header File Version 1.0'
> AssertionError
>
> How can I debug this? I think there's nothing wrong with the vhdr file itself because I have been able to load it and process it in Matlab.
>
>
> Thanks,
>
> Gladia
>
>
>
> _______________________________________________
> 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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160422/d2ac94d3/attachment.html 


More information about the Mne_analysis mailing list