Skip to content

Commit

Permalink
Fix undefined variable bug in plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
hyanwong authored Nov 7, 2024
1 parent f41c50e commit a03dbcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sc2ts/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -1751,10 +1751,10 @@ def draw_subtree(
shown_nodes.append(u)
prev = u

multiple_mutations = []
reverted_mutations = []
if mutation_labels is None:
mutation_labels = collections.defaultdict(list)
multiple_mutations = []
reverted_mutations = []
use_mutations = np.where(np.isin(ts.mutations_node, shown_nodes))[0]
sites = ts.mutations_site[use_mutations]
for mut_id in use_mutations:
Expand Down

0 comments on commit a03dbcf

Please sign in to comment.