def set_current_comp(info, comp):
    """Set the current compensation in effect in the data
    """
    comp_now = get_current_comp(info)
    for k, chan in enumerate(info['chs']):
        if chan['kind'] == FIFF.FIFFV_MEG_CH:
            rem = (comp_now << 16) - chan['coil_type']
            chan['coil_type'] = int(rem + (comp << 16))
dataset/ETHPy150Open mne-tools/mne-python/mne/io/compensator.py/set_current_comp/swapped operands of `-`