Python 0.5.4
Features
-
A new
Tree.is_root
method avoids the need to to search the potentially
large list ofTree.roots
(@hyanwong, #2669, #2620) -
The
TreeSequence
object now has the attributesmin_time
andmax_time
,
which are the minimum and maximum among the node times and mutation times,
respectively. (@szhan, #2612, #2271) -
The
draw_svg
methods now have amax_num_trees
parameter to truncate
the total number of trees shown, giving a readable display for tree
sequences with many trees (@hyanwong, #2652) -
The
draw_svg
methods now accept acanvas_size
parameter to allow
extra room on the canvas e.g. for long labels or repositioned graphical
elements (@hyanwong, #2646, #2645) -
The
Tree
object now has the methodsiblings
to get
the siblings of a node. It returns an empty tuple if the node
has no siblings, is not a node in the tree, is the virtual root,
or is an isolated non-sample node.
(@szhan, #2618, #2616) -
The
msprime.RateMap
class has been ported into tskit: functionality should
be identical to the version in msprime, apart from minor changes in the formatting
of tabular text output (@hyanwong, @jeromekelleher, #2678) -
Tskit now supports and has wheels for Python 3.11. This Python version has a significant performance boost. (@benjeffery , #2624 , #2248 )
Breaking Changes