error in reading brain vision raw files

Dear MNE developers and users,

I had some problem opening brain vision files generated by Brain Vision's
Recorder software. (files link
https://www.dropbox.com/sh/8b73u9hjc3ol2iw/AACQVhe_az7Mie8Qm-IQQxN_a?dl=0).
Previously, I was able to open other brain vision raw files.

mne.io.read_raw_brainvision("test_bv_files/test6.vhdr")
Extracting parameters from test_bv_files/test6.vhdr...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ying/anaconda2/lib/python2.7/site-packages/mne/
io/brainvision/brainvision.py", line 717, in read_raw_brainvision
    event_id=event_id, verbose=verbose)
  File "<string>", line 2, in __init__
  File "/home/ying/anaconda2/lib/python2.7/site-packages/mne/utils.py",
line 707, in verbose
    return function(*args, **kwargs)
  File "/home/ying/anaconda2/lib/python2.7/site-packages/mne/
io/brainvision/brainvision.py", line 85, in __init__
    _get_vhdr_info(vhdr_fname, eog, misc, scale, montage)
  File "/home/ying/anaconda2/lib/python2.7/site-packages/mne/
io/brainvision/brainvision.py", line 512, in _get_vhdr_info
    assert ch in line_amp
AssertionError

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.

Any input is appreciated! Thanks.

Best,
Ying
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170626/5b3f3281/attachment.html

Hi Ying,

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
https://github.com/mne-tools/mne-python/pull/4354.

Hope this helps.
-Jaakko