Right now if you call draw with set_tip_labels and a list of floats it does this:
~/toytree/toytree/Drawing.py in <listcomp>(.0)
896 return
897
--> 898 lname = max([len(i) for i in self.tip_labels])
899 if self.style.layout in ("r", "l"):
900 # height fit by tree size
TypeError: object of type 'numpy.float64' has no len()
This seems like a reasonable thing to want to do. Is it possible to cast the input tip labels to str inside the draw() command to allow this?
Right now if you call
draw
withset_tip_labels
and a list of floats it does this:This seems like a reasonable thing to want to do. Is it possible to cast the input tip labels to str inside the draw() command to allow this?