import csv


def read_base_comp(filename):
    """Read the base compition from a file created by write_base_comp"""
    with open(filename, newline="") as csvfile:
        reader = csv.DictReader(csvfile)
        for row in reader:
            return row

    raise csv.Error("No rows found in %r" % (filename,))