jeetsukumaran / DendroPy

A Python library for phylogenetic scripting, simulation, data processing and manipulation.
https://pypi.org/project/DendroPy/.
BSD 3-Clause "New" or "Revised" License
210 stars 61 forks source link

functions extract_tree_with_taxa and extract_tree_with_taxa_labels have extra parameters in the documentation #86

Closed idavydov closed 6 months ago

idavydov commented 7 years ago

In the documentation, extract_tree_with_taxa and extract_tree_with_taxa_labels have parameters is_apply_filter_to_leaf_nodes and is_apply_filter_to_internal_nodes. In reality there are no such parameters, if you are trying to call:

subtree = t.extract_tree_with_taxa_labels([...], is_apply_filter_to_leaf_nodes=True)

you get:

TypeError: extract_tree_with_taxa_labels() got an unexpected keyword argument 'is_apply_filter_to_leaf_nodes'

I am not sure if the error is in the documentation or the function. :)

mmore500 commented 6 months ago

Thanks for the report! I've fixed the documentation, it is on the version 5 release branch :+1: