def load_gains(fileName):
    """Loads the gains from the file into a dictionary."""
    f = open(fileName, 'r')
    header = f.readline()
    variables = header.strip().split(',')
    data = {k : [] for k in variables}
    for line in f:
        values = line.strip().split(',')
        for i, val in enumerate(values):
            data[variables[i]].append(val)
    return data