Digitization and Channel Positions

External Email - Use Caution

Hello,

I am creating digitization montage files I obtained from a Polhemus system using the read_dig_montage and setting it with set_montage(rawfile, set_dig=True). When I go to run ICA, I get this warning:

WARNING:root:Did not find any electrode locations (in the info object), will attempt to use digitization points instead. However, if digitization points do not correspond to the EEG electrodes, this will lead to bad results. Please verify that the sensor locations in the plot are accurate.

My question is: how do I set the channel positions for a dig montage? Any help would be greatly appreciated.

Thanks,

J

External Email - Use Caution

Dear Jason,

if you now use version 0.19 you should be using:

https://mne.tools/stable/generated/mne.channels.read_dig_polhemus_isotrak.html#mne.channels.read_dig_polhemus_isotrak

something like:

montage = mne.channels.read_dig_polhemus_isotrak(fname)
raw.set_montage(montage)

should just work. If not please open an issue on github

Alex