def test_multiple_bounders():
AB = Population(name='AB')
A = Population(name='A', father=AB)
B = Population(name='B', father=AB)
a = Event(time=0.0, lca_pop=A)
b = Event(time=0.0, lca_pop=B)
c = Event(time=0.0, lca_pop=B)
d = Event(time=0.0, lca_pop=B)
ab = Event(time=0.5, left=a, right=b)
abc = Event(time=0.6, left=ab, right=c)
abcd = Event(time=0.7, left=abc, right=d)
tau_bounds = find_tau_bounds(abcd)
assert isclose(tau_bounds[AB], ab.time)
test_tau_bounds.py 文件源码
python
阅读 32
收藏 0
点赞 0
评论 0
评论列表
文章目录