def fix_mag_coil_types(info):
 old_mag_inds = _get_T1T2_mag_inds(info)
 for ii in old_mag_inds:
  info['chs'][ii]['coil_type'] = FIFF.FIFFV_COIL_VV_MAG_T3
 logger.info(('%d of %d T1/T2 magnetometer types replaced with T3.' % (len(old_mag_inds), len(pick_types(info, meg='mag')))))
 info._check_consistency()

def fix_mag_coil_types ( info ) : old_mag_inds = _get_T1T2_mag_inds ( info ) for ii in old_mag_inds : info [ 'chs' ] [ ii ] [ 'coil_type' ] = FIFF . FIFFV_COIL_VV_MAG_T3 logger . info ( ( '%d of %d T1/T2 magnetometer types replaced with T3.' % ( len ( old_mag_inds ) , len ( pick_types ( info , meg = 'mag' ) ) ) ) ) info . _check_consistency ( )
fix magnetometer coil types .