Skip to content

Add TreeSequence.coiterate(other, **kwargs) method #1021

Closed
@jeromekelleher

Description

@jeromekelleher

As discussed in #815, this is a useful operation and should be part of the public API.

The implementation is here, which I think is probably fine. We can leave the door open to coiterating along more than two tree sequences via *args, but we don't need to worry about doing it for now.

We just need a handful of tests to make sure that (a) this does what we expect on a simple example; (b) the trees are returned in the correct order (i.e., tree1.tree_sequence is ts1) and so on; (c) we test some cases like one ts has one tree and the other has 3, etc; (d) test error conditions are handled correctly.

I think we should get this in for 0.3.3

@benjeffery @hyanwong, would one of you mind picking this up please?

Metadata

Metadata

Assignees

Labels

Python APIIssue is about the Python API

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions