etetoolkit / ete

Python package for building, comparing, annotating, manipulating and visualising trees. It provides a comprehensive API and a collection of command line tools, including utilities to work with the NCBI taxonomy tree.
http://etetoolkit.org
GNU General Public License v3.0
782 stars 212 forks source link

branch_range in populate() is used instead of support_range #649

Closed maremita closed 1 year ago

maremita commented 1 year ago

Hi, I found a small bug in the code of populate function where the variable branch_range is used as a range to generate support values instead of using support_range.

if random_branches:
    c1.dist = random.uniform(*branch_range)
    c2.dist = random.uniform(*branch_range)
    c1.support = random.uniform(*branch_range)
    c2.support = random.uniform(*branch_range)

Thank you.

Amine.