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

Gladia Hotan gladiach at gmail.com
Fri Apr 22 20:38:56 EDT 2016
Search archives:

Hi Eric,

Do I get the latest version by running $ pip install mne –upgrade in
python? I did this in pycharm and I got 'invalid syntax'.

Best,
Gladia

On Fri, Apr 22, 2016 at 7:34 PM, Eric Larson <larson.eric.d at gmail.com>
wrote:

> 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.
>>
>>
>
> _______________________________________________
> 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/0c3be813/attachment-0001.html 


More information about the Mne_analysis mailing list