Skip to content

Commit

Permalink
4.5.5: dendropy backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
smirarab committed Aug 28, 2024
1 parent f3ef3b3 commit b3b3305
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Version 4.5.5:
* Keep backwards compatible with dendropy < 4.5.2
* Version 4.5.4:
* Slight improvements in logging key information
* Version 4.5.3:
Expand Down
2 changes: 1 addition & 1 deletion sepp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'jobs', 'math_utils', 'problem', 'scheduler',
'scratch', 'tree', 'get_logger', 'is_temp_kept', 'version']

version = "4.5.4"
version = "4.5.5"
_DEBUG = ("SEPP_DEBUG" in os.environ) and \
(os.environ["SEPP_DEBUG"].lower() == "true")

Expand Down
7 changes: 6 additions & 1 deletion sepp/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,12 @@ def bipartition_by_edge(self, e):

nr.edge.length = None
nr.parent_node = None
nr._convert_node_to_root_polytomy()
try:
nr._convert_node_to_root_polytomy()
except AttributeError:
from dendropy.datamodel.treemodel import \
_convert_node_to_root_polytomy
_convert_node_to_root_polytomy(nr)
t1 = PhylogeneticTree(Tree(seed_node=nr))
# temp we could speed this up,
# by telling the Phylogenetic tree how many leaves it has
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from distutils.core import setup, Command

use_setuptools(version="0.6.24")
version = "4.5.4"
version = "4.5.5"


def get_tools_dir(where):
Expand Down

0 comments on commit b3b3305

Please sign in to comment.