Skip to content

Conversation

@larsoner
Copy link
Member

As suggested by Jukka

Comment on lines +1404 to +1415
# From email exchanges, systems with the larger T2 coil only use the cal
# value of 2.09e-11. Newer T3 magnetometers use 4.13e-11 or 1.33e-10
# (Triux). So we can use a simple check for > 3e-11.
for ii in picks:
ch = info['chs'][ii]
if ch['coil_type'] in (FIFF.FIFFV_COIL_VV_MAG_T1,
FIFF.FIFFV_COIL_VV_MAG_T2):
old_mag_inds.append(ii)
if use_cal:
if ch['cal'] > 3e-11:
old_mag_inds.append(ii)
else:
old_mag_inds.append(ii)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mshamalainen clear enough?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should do it. I suppose the processed files will inherit the correct mag coil types.

@larsoner larsoner merged commit a408881 into mne-tools:master Jun 25, 2020
@larsoner larsoner deleted the autofix branch June 25, 2020 20:52
larsoner added a commit to larsoner/mne-python that referenced this pull request Jun 25, 2020
* upstream/master:
  MRG, ENH: Automatically fix magnetometers when maxwell filtering (mne-tools#7929)
  MRG: Prepare migration to PyVista 0.25 (mne-tools#7791)
  MAINT: Simpler VTK [circle front] (mne-tools#7931)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants