Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
rneher committed Sep 21, 2022
1 parent 0d78022 commit 6adb3d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.9.4: bug fix and performance improvments

* avoid negative variance associated with branch lengths in tree regression. This could happen in rare cases when marginal time tree estimation returned short negative branch length and the variance was estimated as being proportional to branch length. Variances in the `TreeRegression` clock model are now always non-negative.
* downsample the grid during multiplication of distribution objects. This turned out to be an issue for trees with very large polytomies. In these cases, a large number of distributions get multiplied which resulted in grid sizes above 100000 points. Grid sizes are now downsampled to the average grid size.

# 0.9.3

* Add extra error class for "unknown" (==unhandled) errors
Expand Down
2 changes: 1 addition & 1 deletion treetime/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version="0.9.3"
version="0.9.4"
## Here we define an error class for TreeTime errors, MissingData, UnknownMethod and NotReady errors
## are all due to incorrect calling of TreeTime functions or input data that does not fit our base assumptions.
## Errors marked as TreeTimeUnknownErrors might be due to data not fulfilling base assumptions or due
Expand Down
2 changes: 1 addition & 1 deletion treetime/clock_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ def _cleanup():

msg_parent_to_node =None
if node.marginal_pos_Lx is not None:
if len(parent.clades)<3:
if len(parent.clades)<5:
# messages from the complementary subtree (iterate over all sister nodes)
complementary_msgs = [parent.date_constraint] if parent.date_constraint is not None else []
complementary_msgs.extend([sister.marginal_pos_Lx for sister in parent.clades
Expand Down

0 comments on commit 6adb3d1

Please sign in to comment.