[Mne_analysis] 4D/BTi channel names vs labels

Bear, Joshua JOSHUA.BEAR at ucdenver.edu
Tue Mar 5 16:54:41 EST 2019
Search archives:

I apologize — I missed a bit of preceding code. It looks like the config versus pdf check chan_no check does remove unused config channels before making the comparison. In my subject, the channels were not in the same order. Thus, when replicating the MNE code:

        # check all pdf channels are present in config
        match = [c['chan_no'] for c in chans_cfg] == \
                [c['chan_no'] for c in chans]

I also received a FALSE. 

>>> [c['chan_no'] for c in chans_cfg] == [c['chan_no'] for c in chans]
False

If, however, I _sort_ the comparison, it is TRUE: 

>>> sorted([c['chan_no'] for c in chans_cfg]) == sorted([c['chan_no'] for c in chans])
True

I will submit a note on GitHub in case sorting can be added without causing other problems…

Thanks,
Josh


-------------- 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/7a4138f4/attachment.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/7a4138f4/attachment.html 


More information about the Mne_analysis mailing list