예제 #1
0
 def test_single_tree(self):
     ts = msprime.simulate(5, random_seed=234)
     tsinfer.assert_smc(ts)
예제 #2
0
 def test_smc(self):
     for seed in range(1, 10):
         ts = get_smc_simulation(10, 100, 0.1, seed)
         tsinfer.assert_smc(ts)
         self.assertGreater(ts.num_trees, 1)
예제 #3
0
 def test_non_smc(self):
     ts = msprime.simulate(3, recombination_rate=10, random_seed=14)
     with pytest.raises(ValueError):
         tsinfer.assert_smc(ts)