Skip to content

Commit

Permalink
Stop using recursive_tree_part
Browse files Browse the repository at this point in the history
  • Loading branch information
InnovativeInventor committed Jan 13, 2022
1 parent 7f835db commit 9e5f50b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions gerrychain/proposals/tree_proposals.py
Expand Up @@ -45,15 +45,16 @@ def recom(
partition.parts[parts_to_merge[0]] | partition.parts[parts_to_merge[1]]
)

flips = recursive_tree_part(
subgraph,
parts_to_merge,
pop_col=pop_col,
pop_target=pop_target,
epsilon=epsilon,
node_repeats=node_repeats,
method=method,
)
flips = {
x: parts_to_merge[0]
for x in bipartition_tree_retworkx(
subgraph,
pop_col=pop_col,
pop_target=pop_target,
epsilon=epsilon,
node_repeats=node_repeats,
)
}

return partition.flip(flips)

Expand Down

0 comments on commit 9e5f50b

Please sign in to comment.