<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="ltr">Were data recorded from only the PDF channels? If so then we can probably trim the config based on the subset of PDF+data channels. Feel free to open an MNE issue and, if possible, record a very short segment of data that exhibits this problem and upload it somewhere for testing purposes.<div><br></div><div>Eric</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 5, 2019 at 4:28 PM Bear, Joshua &lt;<a href="mailto:JOSHUA.BEAR@ucdenver.edu">JOSHUA.BEAR@ucdenver.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi MNE folks, <br>
<br>
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.<br>
<br>
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? <br>
<br>
Error message below.<br>
<br>
Thank you,<br>
Josh<br>
<br>
<br>
<br>
<br>
&gt;&gt;&gt; raw = mne.io.read_raw_bti(raw_file)<br>
Reading 4D PDF file /Users/joshbear/clinical/meg/data/E-0181/EPILEPSY24/03%14%18@12:46/1/c,rfhp0.1Hz...<br>
Traceback (most recent call last):<br>
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
  File &quot;&lt;string&gt;&quot;, line 2, in read_raw_bti<br>
  File &quot;/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/utils.py&quot;, line 952, in verbose<br>
    return function(*args, **kwargs)<br>
  File &quot;/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/io/bti/bti.py&quot;, line 1407, in read_raw_bti<br>
    eog_ch=eog_ch, preload=preload, verbose=verbose)<br>
  File &quot;&lt;string&gt;&quot;, line 2, in __init__<br>
  File &quot;/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/utils.py&quot;, line 952, in verbose<br>
    return function(*args, **kwargs)<br>
  File &quot;/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/io/bti/bti.py&quot;, line 1040, in __init__<br>
    sort_by_ch_name=sort_by_ch_name, eog_ch=eog_ch)<br>
  File &quot;/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/io/bti/bti.py&quot;, line 1139, in _get_bti_info<br>
    pdf_fname, config_fname, sort_by_ch_name=sort_by_ch_name)<br>
  File &quot;/Users/joshbear/bin/anaconda3/envs/mne/lib/python3.6/site-packages/mne/io/bti/bti.py&quot;, line 921, in _read_bti_header<br>
    raise RuntimeError(&#39;Could not match raw data channels with&#39;<br>
RuntimeError: Could not match raw data channels with config channels. Some of the channels found are not described in config.<p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)">        External Email - Use Caution        </span></p><p></p>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></blockquote></div>