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

use table.metadata_vector( ) in docs #209

Open
petrelharp opened this issue Nov 17, 2021 · 0 comments
Open

use table.metadata_vector( ) in docs #209

petrelharp opened this issue Nov 17, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@petrelharp
Copy link
Contributor

petrelharp commented Nov 17, 2021

.. when approppriate, for instance changing

max_age = max([ind.metadata["age"] for ind in ts.individuals()])

to

max_age = max(ts.tables.individuals.metadata_vector("age"))

However, let's wait until immutable tables happen, else this will be less efficient, not more efficient due to copying of tables.

@petrelharp petrelharp added this to the v1.0 milestone Dec 11, 2021
@petrelharp petrelharp modified the milestones: v1.0, v1.1 Dec 20, 2021
@bhaller bhaller added the enhancement New feature or request label Aug 10, 2022
@petrelharp petrelharp modified the milestones: v1.0, v1.1 Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants