<div dir="ltr">Hi Ying,<div><br></div><div>I checked the file, and the problem is with channels named 'photosensor' and 'respiration'. In the code the splitting function uses multiple spaces as the separator, so for now, adding one more space after the channel name in the header fixes it ('photosensor 129' -> photosensor 129'). See also <a href="https://github.com/mne-tools/mne-python/pull/4354">https://github.com/mne-tools/mne-python/pull/4354</a>.</div><div><br></div><div>Hope this helps.</div><div>-Jaakko</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 27, 2017 at 1:10 AM, Ying Yang <span dir="ltr"><<a href="mailto:evergreenlifeyangying@gmail.com" target="_blank">evergreenlifeyangying@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><div>Dear MNE developers and users,<br><br></div>I had some problem opening brain vision files generated by Brain Vision's Recorder software. (files link <a href="https://www.dropbox.com/sh/8b73u9hjc3ol2iw/AACQVhe_az7Mie8Qm-IQQxN_a?dl=0" target="_blank">https://www.dropbox.com/sh/<wbr>8b73u9hjc3ol2iw/AACQVhe_<wbr>az7Mie8Qm-IQQxN_a?dl=0</a>). Previously, I was able to open other brain vision raw files. <br><br><br> mne.io.read_raw_brainvision("<wbr>test_bv_files/test6.vhdr")<br>Extracting parameters from test_bv_files/test6.vhdr...<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br> File "/home/ying/anaconda2/lib/pyth<wbr>on2.7/site-packages/mne/io/<wbr>brainvision/brainvision.py", line 717, in read_raw_brainvision<br> event_id=event_id, verbose=verbose)<br> File "<string>", line 2, in __init__<br> File "/home/ying/anaconda2/lib/pyth<wbr>on2.7/site-packages/mne/utils.<wbr>py", line 707, in verbose<br> return function(*args, **kwargs)<br> File "/home/ying/anaconda2/lib/pyth<wbr>on2.7/site-packages/mne/io/<wbr>brainvision/brainvision.py", line 85, in __init__<br> _get_vhdr_info(vhdr_fname, eog, misc, scale, montage)<br> File "/home/ying/anaconda2/lib/pyth<wbr>on2.7/site-packages/mne/io/<wbr>brainvision/brainvision.py", line 512, in _get_vhdr_info<br> assert ch in line_amp<br>AssertionError<br><br></div><div>The error seemed to indicate some format issue in the header file. I have manually looked at the header file, but could not find anything that might cause the issue. <br><br></div><div>Any input is appreciated! Thanks. <br><br></div><div>Best,<br></div><div>Ying<br></div></div>
</div><br></div>
<br>______________________________<wbr>_________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.<wbr>edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.<wbr>edu/mailman/listinfo/mne_<wbr>analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/<wbr>complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>