Skip to content

Commit

Permalink
Update input_mod.py
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored Jan 21, 2023
1 parent b4f5aca commit c0d2531
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/chronumental/input_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,6 @@ def get_initial_branch_lengths_and_name_all_nodes(tree):
initial_branch_lengths = {}
for i, node in alive_it(enumerate(tree.traverse_preorder()),
title="finding initial branch_lengths"):
# If node label looks like a float, then it's something else, so we set to None:
if node.label and node.label.replace(".", "").strip().isdigit():
node.label = None
if not node.label:
name = helpers.get_unnnamed_node_label(i)
node.label = name
Expand Down

0 comments on commit c0d2531

Please sign in to comment.