Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement get_status_by_generation function in analytics.py #74

Open
clarencecastillo opened this issue Mar 11, 2014 · 1 comment
Open
Assignees

Comments

@clarencecastillo
Copy link
Collaborator

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 clarencecastillo self-assigned this Mar 11, 2014
@clarencecastillo
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant