def rename_CHI_cols(data):
    """
    names columns of RGA data like they would be from PyExpLabSys+cinfdata
    """
    data_cols = data['data_cols'].copy()
    for col_0 in data_cols:
        for c0, c in [('Time/s', 'time/s'), ('Potential/V', 'Ewe/V'), (
            'Current/A', 'I/A'), ('Charge/C', '(Q-Qo)/C')]:
            if c0 in col_0:
                col = c
                break
        else:
            continue
        data[col] = data[col_0].copy()
        data['col_types'][col] = 'EC'
        data['data_cols'].add(col)
        print(col_0 + ' copied to ' + col)
    if 'I/A' in data and 'I/mA' not in data:
        data['I/mA'] = data['I/A'] * 1000.0
        data['col_types']['I/mA'] = 'EC'
        data['data_cols'].add('I/mA')
