Skip to content

use table.metadata_vector( ) in docs #209

Open

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.

Activity

  1. added this to the v1.0 milestone on Dec 11, 2021
  2. modified the milestones: v1.0, v1.1 on Dec 20, 2021
  3. added
    enhancement
    on Aug 10, 2022
  4. modified the milestones: v1.0, v1.1 on Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions