Closed idavydov closed 6 months 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:
extract_tree_with_taxa
extract_tree_with_taxa_labels
is_apply_filter_to_leaf_nodes
is_apply_filter_to_internal_nodes
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. :)
Thanks for the report! I've fixed the documentation, it is on the version 5 release branch :+1:
In the documentation,
extract_tree_with_taxa
andextract_tree_with_taxa_labels
have parametersis_apply_filter_to_leaf_nodes
andis_apply_filter_to_internal_nodes
. In reality there are no such parameters, if you are trying to call:you get:
I am not sure if the error is in the documentation or the function. :)