Skip to content

Commit

Permalink
Merge pull request #45 from biocore/conv
Browse files Browse the repository at this point in the history
handle none on edge_num
  • Loading branch information
wasade authored Feb 8, 2022
2 parents d8c4ed3 + ed11a7e commit 54c2d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bp/_conv.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def from_skbio_treenode(tree):
topo[ptr] = 1
names[ptr] = n.name
lengths[ptr] = n.length or 0.0
edges[ptr] = getattr(n, 'edge_num', 0)
edges[ptr] = getattr(n, 'edge_num', None) or 0

if n.is_tip():
ptr += 1
Expand Down

0 comments on commit 54c2d03

Please sign in to comment.