Skip to content

Add left and right arguments to TreeSequence.trees() #24

@jeromekelleher

Description

@jeromekelleher

These should be seen as analogous to the start and stop arguments to Python's builtin range, and be specified in tree sequence coordinates. We should initially ensure that start < stop, but in future we could allow start > stop, and enable reverse iteration in this way.

It would be best to do this with a low-level sparse_tree_seek() method to position the tree at the correct location.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C APIIssue is about the C APIPython APIIssue is about the Python APIenhancementNew feature or request

    Type

    No type

    Projects

    Status

    Bigger things

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions