Skip to content

Commit

Permalink
Merge pull request #175 from hyanwong/correct-samples-unit-test
Browse files Browse the repository at this point in the history
Make sure that extract_ancestors is not compared with path_compressed…
  • Loading branch information
jeromekelleher committed Aug 12, 2019
2 parents 08c2d5f + 32e3cce commit 6448f8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -1642,7 +1642,8 @@ class TestExtractAncestors(unittest.TestCase):
def verify(self, samples):
ancestors = tsinfer.generate_ancestors(samples)
ancestors_ts_1 = tsinfer.match_ancestors(samples, ancestors)
ts = tsinfer.match_samples(samples, ancestors_ts_1, simplify=False)
ts = tsinfer.match_samples(
samples, ancestors_ts_1, path_compression=False, simplify=False)
t1 = ancestors_ts_1.dump_tables()
t2, node_id_map = tsinfer.extract_ancestors(samples, ts)
self.assertEqual(len(t2.provenances), len(t1.provenances) + 2)
Expand Down

0 comments on commit 6448f8d

Please sign in to comment.