eaton-lab / toytree

A minimalist tree plotting library using toyplot graphs
http://eaton-lab.org/toytree
BSD 3-Clause "New" or "Revised" License
164 stars 28 forks source link

fix ValueError if there is no support value for a node (e.g. the root) #70

Closed Kinggerm closed 1 year ago

Kinggerm commented 1 year ago

The error was triggered by the tree string generated by typical tools (e.g. RAxML):

import toytree
tre = toytree.io.parse_newick_string("((A:0.1,B:0.2)100,C:0.3,D:0.4);", internal_labels="support")

generated

---> 362 node.support = float(node.name)
ValueError: could not convert string to float: ''
Kinggerm commented 1 year ago

Just saw the latest toy3 had solved this. I don't know why it was not synced to my fork even after syncing.