[Mne_analysis] 4D/BTi channel names vs labels
Bear, Joshua
JOSHUA.BEAR at ucdenver.edu
Tue Mar 5 16:27:28 EST 2019
Hi MNE folks,
I’ve run into a problem trying to import one of my subject recordings. It appears that the header labels do not match the config channels. This is the first subject I’ve seen this error in.
I used the private functions mne.io.bti.bti._read_bti_header_pdf(raw_file) and mne.io.bti.bti._read_config(config_file). It looks like a handful of the channels are missing from the pdf (header). The error states “channels found are not described in config”, but it looks like the check is just for equality of channel numbers rather than directional. Intuitively, it seems like we should be able to import the data from the pdf itself even if it doesn’t have all of the system channels. Would it make sense to change the equality check to just make sure that all header channels exist in the config rather than vice versa? Or might that create other problems down the road?
Error message below.
Thank you,
Josh
>>> raw = mne.io.read_raw_bti(raw_file)
Reading 4D PDF file /Users/joshbear/clinical/meg/data/E-0181/EPILEPSY24/03%14%18 at 12:46/1/c,rfhp0.1Hz...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 2, in read_raw_bti
File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/utils.py", line 952, in verbose
return function(*args, **kwargs)
File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/io/bti/bti.py", line 1407, in read_raw_bti
eog_ch=eog_ch, preload=preload, verbose=verbose)
File "<string>", line 2, in __init__
File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/utils.py", line 952, in verbose
return function(*args, **kwargs)
File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/io/bti/bti.py", line 1040, in __init__
sort_by_ch_name=sort_by_ch_name, eog_ch=eog_ch)
File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/io/bti/bti.py", line 1139, in _get_bti_info
pdf_fname, config_fname, sort_by_ch_name=sort_by_ch_name)
File "/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/io/bti/bti.py", line 921, in _read_bti_header
raise RuntimeError('Could not match raw data channels with'
RuntimeError: Could not match raw data channels with config channels. Some of the channels found are not described in config.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1521 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190305/5bf0ba12/attachment-0001.bin
-------------- next part --------------
External Email - Use Caution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190305/5bf0ba12/attachment-0001.html
More information about the Mne_analysis
mailing list