Skip to content

use table.metadata_vector( ) in docs #209

Open
@petrelharp

Description

@petrelharp

.. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions