Skip to content

Commit

Permalink
fix: prevent pruning children of root for real
Browse files Browse the repository at this point in the history
  • Loading branch information
rneher committed Jul 9, 2023
1 parent 5067d8f commit ee59f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion treetime/clock_filter_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def add_outlier_info(z, n, n_info, parent_tau, mu):
outliers = {}
mu = tt.clock_model['slope']*tt.data.full_length
for n in tt.tree.get_terminals():
if n.up.up is not None:
if n.up.up is None:
continue # do not label children of the root as bad -- typically a problem with root choice that will be fixed anyway
n_info = node_info[n.name]
parent_tau = node_info[n.up.name]['tau']
Expand Down

0 comments on commit ee59f26

Please sign in to comment.