[Mne_analysis] 4D/BTi channel names vs labels
Eric Larson
larson.eric.d at gmail.com
Tue Mar 5 16:51:15 EST 2019
External Email - Use Caution
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.
Eric
On Tue, Mar 5, 2019 at 4:28 PM Bear, Joshua <JOSHUA.BEAR at ucdenver.edu>
wrote:
> 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.
>
> External Email - Use Caution
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190305/bedcd1b3/attachment-0001.html
More information about the Mne_analysis
mailing list