Skip to content

Python 0.5.2

Compare
Choose a tag to compare
@github-actions github-actions released this 29 Jul 18:27
· 343 commits to main since this release

Fixes

Performance improvements

  • TreeSequence.site position search performance greatly improved, with much lower
    memory overhead (@jeromekelleher, #2424).

  • TreeSequence.samples time/population search performance greatly improved, with
    much lower memory overhead (@jeromekelleher, #2424, #1916).

  • The timeasc and timedesc orders for Tree.nodes have much
    improved performance and lower memory overhead
    (@jeromekelleher, #2424, #2423).

Features

  • Variant objects now have a .num_missing attribute and .counts() and
    .frequencies methods (@hyanwong, #2390 #2393).

  • Add the Tree.num_lineages(t) method to return the number of lineages present
    at time t in the tree (@jeromekelleher, #386, #2422)

  • Efficient array access to table data now provided via attributes like
    TreeSequence.nodes_time, etc (@jeromekelleher, #2424).

Breaking Changes

  • Previously, accessing (e.g.) tables.edges returned a different instance of
    EdgeTable each time. This has been changed to return the same instance
    for the lifetime of a given TableCollection instance. This is technically
    a breaking change, although it's difficult to see how code would depend
    on the property that (e.g.) tables.edges is not tables.edges.
    (@jeromekelleher, #2441, #2080).