Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify ladderize method to avoid recursion depth error #716

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

harryrichman
Copy link

The modified version of the ladderize method uses memoization rather than pure recursion. This avoids a RecursionError being thrown when called on a large tree.

Closes #715

@jordibc jordibc merged commit 9b8379b into etetoolkit:ete3 Nov 2, 2023
@jordibc
Copy link
Contributor

jordibc commented Nov 2, 2023

Merged and tweaked. Thanks @harryrichman

All the new development is going into ete4 and we are actually not developing ete3 anymore. In any case, since after your PR we had an improvement for ladderize() in ete4, we have also exceptionally backported it. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants