def rename_RGA_cols(data):
    """
    names columns of RGA data like they would be from PyExpLabSys+cinfdata
    """
    channels = data['channels']
    for channel, mass in channels.items():
        if mass + '-x' in data:
            print('WARNING: rename_RGA_cols() not copying ' + channel +
                ' to ' + mass +
                ' because there is existing data. Maybe rename_RGA_cols' +
                ' was already called, or maybe the same mass appears in multiple channels.'
                )
        else:
            data[mass + '-x'] = data['Time(s)'].copy()
            data[mass + '-y'] = data[channel].copy()
            data['col_types'][mass + '-x'] = 'MS'
            data['col_types'][mass + '-y'] = 'MS'
            data['data_cols'].add(mass + '-x')
            data['data_cols'].add(mass + '-y')
            print(channel + ' copied to ' + mass)
