Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/tspop.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ def __get_census_nodes(ts, census_time):
return census_nodes

def __replace_parents_with_pops(ts, census_nodes):
ancestor_table = ts.tables.link_ancestors(
tables = ts.dump_tables()
ancestor_table = tables.link_ancestors(
samples=ts.samples(),
ancestors=census_nodes
)

population_ids = ts.tables.nodes.population
population_ids = ts.nodes_population
local_ancestry = PopAncestry(left=ancestor_table.left,
right=ancestor_table.right,
ancestor=ancestor_table.parent,
Expand Down