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
207 stars 62 forks source link

TaxonNamespace partition() not working #113

Closed sojovictor closed 4 years ago

sojovictor commented 5 years ago

Hi there!

I am trying to define partitions for the taxa in a tree, but both with my own data, and when following the example in the DendroPy Primer (https://dendropy.org/primer/taxa_partitions.html), the system fails with: AttributeError: 'TaxonNamespace' object has no attribute 'partition'

I have DendroPy 4.4.0. I would welcome any sugestions!

davidfbibby commented 4 years ago

I am having exactly the same problem!

jeetsukumaran commented 4 years ago

Looks like support for TaxonNamespace.partition() got dropped somewhere down the line. No idea why. It has been restored for now in the latest revision: 97d27f94 .

There is an example file to run this docs/source/examples/taxon_namespace_partition.py/taxon_namespace_partition.py.

davidfbibby commented 4 years ago

Thanks. Will it be restored in the main distro?

Dave

jeetsukumaran commented 4 years ago

In the next merge, yes.