-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allow historical samples in inside_outside method #214
base: main
Are you sure you want to change the base?
Conversation
I have been adding extra functionality to this PR - I guess that's fine @awohns ?! |
02a9b67
to
de1c751
Compare
e80bd40
to
6b523bd
Compare
We also need to implement tests for |
c1c3861
to
09b5624
Compare
@hyanwong, one of the changes in the inside pass has dramatically slowed it down, I'm not sure which one |
OK, useful to know. I'll try to track it down. |
Hmm, after a bit of testing on simulated tree sequences I'm not seeing a difference between the current version of tsdate and this PR. |
Yep, I had a look, and can't see anything that should have slowed it down. It might be worth having a perf suite like msprime (asv I think it's called), but I suspect it might be a hassle to set up and run. |
6f6899e
to
6e6cf7b
Compare
Rework build-prior and inside / outside logic to allow historical samples And speed up time constraint algorithms while also allowing nodes to be out of time order
6e6cf7b
to
b0ea6a1
Compare
I've rebased this and run it on a reasonable-sized tree sequence and it doesn't seem to change the runtimes. I reckon we should think about merging it, and get a review from someone. The ability to include ancient samples is a big win, and we should get it in the next release. |
7201603
to
b0ea6a1
Compare
The API for build_grid is changed to include the following:
|
Previously truncate_prior wasn't actually being called!