-
Notifications
You must be signed in to change notification settings - Fork 20
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
[BUG] Unable to read trees with sampled ancestors in development #240
Comments
I am also having this issue on Mac Catalina 10.15.7 and Linux Ubuntu 22.04 LTS. |
Tried a couple commits up to 8a31d1e (Mar 11) and problem persists. |
Closed by mistake. Problem still persists in current (Aug 23) version of development |
I'll try and take a look... have you tried compiling a debug version and looking at it in |
@brpetrucci Can you try to make small tree that reproduces the problem? I'm curious what the smallest tree that yield this type of error is. This would serve as a "reduced testcase" that makes it easier to debug. |
@brpetrucci I think I've fixed this on #263 - can you try that out? |
Seem like it's working! Thank you Ben. |
Describe the bug
Since pulling from development on May 2nd, my scripts have errored when reading trees with sampled ancestors. The specific error is
Problem while working with tree: Node had bad index. Two nodes had same index of '0'.
This same error is not present when compiling and running the master branch. Furthermore, reading an ultrametric tree or one with extant and fossil tips (but no ancestors) does not lead to error.To Reproduce
From my tests any tree with sampled ancestors will error, but an example can be downloaded from here, while the equivalent ultrametric tree can be found here, and the tree with fossil and extant tips, but no SAs, here. If
tree.nex
is the name of the file in question, to reproduce one need simply runreadTrees(file = "tree.nex")[1]
Computer info
MacOS Big Sur 11.6, RevBayes development commit ebf2aa7 (Apr 29 2022)
The text was updated successfully, but these errors were encountered: