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

Set more informative error message in translate_site_rates #20

Open
junhaobearxiong opened this issue Sep 15, 2024 · 0 comments
Open

Set more informative error message in translate_site_rates #20

junhaobearxiong opened this issue Sep 15, 2024 · 0 comments

Comments

@junhaobearxiong
Copy link

junhaobearxiong commented Sep 15, 2024

Currently, when FastTree is called on an MSA with only one sequence, one gets the following error:

  File "cherryml/phylogeny_estimation/_fast_tree.py", line 117, in translate_site_rates
    f"{len(site_rates)} sites\n" + " ".join(site_rates)
UnboundLocalError: local variable 'site_rates' referenced before assignment

It would be more informative to mention the specific issue about an MSA that causes FastTree to fail.

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

No branches or pull requests

1 participant