Implement get_status_by_generation function in analytics.py
clarencecastillo opened this issue · 1 comments
clarencecastillo commented
Returns a list of an entire generation's status. User is able to specify the starting time of the simulation, the name of the population, the generation to analyze and the status to be extracted.
clarencecastillo commented
def get_status_by_generation(status, starting_time, pop_name, generation):
organisms = database_calls.db_reconstruct_organisms(cur, starting_time, pop_name, generation)
organism_status = []
for organism in organisms:
organism_status.append(organism.status['status'])
return organism_status