coil_type

External Email - Use Caution

Dear MNE team,

I was trying to read epochs data in fieldtrip and I had an issue trying to
load the sensors. Indeed my info['chs'][i]['coil_type'] is 201609 , should
not be this constant for mag ctf system 5002 ?
Why is it like that?
thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200612/69a77209/attachment.html

External Email - Use Caution

hi Edoardo,

maybe. Can you give us more details? maybe share the file?

Alex

External Email - Use Caution

hi Alex,

I found this related issue https://github.com/mne-tools/mne-bids/issues/128 ,
let me know if this help, in principle I have the same.
Otherwise I share the file

External Email - Use Caution

can you share / point to a file?

it's maybe an IO issue for our CTF reading code.

A

External Email - Use Caution

I think higher order bits get set on the coil type when gradient
compensation is applied.

Eric

External Email - Use Caution

See for example one of our testing CTF files (converted to FIF format):

import mne
raw = mne.io.read_raw_fif('test_ctf_raw.fif')
raw.info['chs'][40]['coil_type']

5001

raw.apply_gradient_compensation(3).info['chs'][40]['coil_type']

201609

Eric