def _make_ctf_comp_coils(info, coils):
 logger.info('Setting up compensation data...')
 comp_num = get_current_comp(info)
 if ((comp_num is None) or (comp_num == 0)):
  logger.info('    No compensation set. Nothing more to do.')
  return None
 n_comp_ch = sum([(c['kind'] == FIFF.FIFFV_MEG_CH) for c in info['chs']])
 logger.info(('    %d out of %d channels have the compensation set.' % (n_comp_ch, len(coils))))
 compensator = make_compensator(info, 0, comp_num, True)
 logger.info(('    Desired compensation data (%s) found.' % comp_num))
 logger.info('    All compensation channels found.')
 logger.info('    Preselector created.')
 logger.info('    Compensation data matrix created.')
 logger.info('    Postselector created.')
 return compensator

def _make_ctf_comp_coils ( info , coils ) : logger . info ( 'Setting up compensation data...' ) comp_num = get_current_comp ( info ) if ( ( comp_num is None ) or ( comp_num == 0 ) ) : logger . info ( '    No compensation set. Nothing more to do.' ) return None n_comp_ch = sum ( [ ( c [ 'kind' ] == FIFF . FIFFV_MEG_CH ) for c in info [ 'chs' ] ] ) logger . info ( ( '    %d out of %d channels have the compensation set.' % ( n_comp_ch , len ( coils ) ) ) ) compensator = make_compensator ( info , 0 , comp_num , True ) logger . info ( ( '    Desired compensation data (%s) found.' % comp_num ) ) logger . info ( '    All compensation channels found.' ) logger . info ( '    Preselector created.' ) logger . info ( '    Compensation data matrix created.' ) logger . info ( '    Postselector created.' ) return compensator
get the correct compensator for ctf coils .