Skip to content

Commit

Permalink
No need to remove attr trans if there aren't any
Browse files Browse the repository at this point in the history
  • Loading branch information
binho authored and binho committed May 20, 2024
1 parent 19c2dde commit df125c5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/phylojunction/readwrite/pj_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,12 @@ def recursively_collect_smaps(nd: dp.Node,
# PJ keeps information for plotting)
if clado_event is not None:
clado_time = clado_event.global_time
at_time = at_list[0].global_time

if at_time == clado_time:
at_list = at_list[1:]
if len(at_list) > 0:
at_time = at_list[0].global_time

if at_time == clado_time:
at_list = at_list[1:]

for at in at_list:
ana_at_str_list = [it_idx_str, nd_idx]
Expand Down

0 comments on commit df125c5

Please sign in to comment.