import shelve


def read_population_assignation_cp(namefile):
    """Read pre-computed population assignation."""
    db = shelve.open(namefile)
    cps = db['cps']
    population_value = db['population_value']
    methodvalues = db['methodvalues']
    db.close()
    return cps, population_value, methodvalues