def set_current_comp(info, comp):
 comp_now = get_current_comp(info)
 for (k, chan) in enumerate(info['chs']):
  if (chan['kind'] == FIFF.FIFFV_MEG_CH):
   rem = (chan['coil_type'] - (comp_now << 16))
   chan['coil_type'] = int((rem + (comp << 16)))

def set_current_comp ( info , comp ) : comp_now = get_current_comp ( info ) for ( k , chan ) in enumerate ( info [ 'chs' ] ) : if ( chan [ 'kind' ] == FIFF . FIFFV_MEG_CH ) : rem = ( chan [ 'coil_type' ] - ( comp_now << 16 ) ) chan [ 'coil_type' ] = int ( ( rem + ( comp << 16 ) ) )
set the current compensation in effect in the data .