eaton-lab / toytree

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

xrange error - Python3 #21

Closed sokrypton closed 6 years ago

sokrypton commented 6 years ago

There is no xrange in Python3.

in function: toytree.multitree()

/usr/local/lib/python3.6/dist-packages/toytree/multitree.py in _filter_clades(clade_counts, cutoff)
    391     counts = np.array([i[1] for i in clade_counts], dtype=np.float64)
    392 
--> 393     for idx in xrange(clades.shape[0]):
    394         conflict = False
    395 

NameError: name 'xrange' is not defined
eaton-lab commented 6 years ago

A new Py2/Py3 compatible version (0.1.16) is now up on conda and pip.