Skip to content

Commit

Permalink
fix: fix sign error in clock-filter diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
rneher committed Jul 9, 2023
1 parent ee59f26 commit 066b80d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion treetime/clock_filter_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def add_outlier_info(z, n, n_info, parent_tau, mu):
elif n.raw_date_constraint and len(n.raw_date_constraint):
zs = [(n_info['tau'] - x)/z_scale for x in n.raw_date_constraint]
if zs[0]*zs[1]>0 and np.min(np.abs(zs))>z_score_threshold:
outliers[n.name] = add_outlier_info(zs[0] if np.abs(zs[0])>np.abs(zs[1]) else zs[1], n, n_info, parent_tau, mu)
outliers[n.name] = add_outlier_info(zs[0] if np.abs(zs[0])<np.abs(zs[1]) else zs[1],
n, n_info, parent_tau, mu)

return outliers

Expand Down

0 comments on commit 066b80d

Please sign in to comment.