-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
subset_draws(x, chain = j)
has incorrect behaviour following split_chains
for type draws_rvars
#300
Comments
Thanks. I will take a look. Currently occupied with deadlines but will get back to it soon. |
Hmm I think I wrote this before draws_of got a with_chains option, could probably be simplified to share some similarities (and maybe code) with the draws_array implementation by using with_chains = TRUE. |
I can try to take a look this weekend --- currently at a conference but there's a long plane ride back 🤷♂️ |
Thank you! |
Describe the bug
subset_draws
detects incorrect number of chains/iterations fordraws_rvars
following a call ofsplit_chains
.To Reproduce
Results in
Expected behavior
Expect
subset_draws(split_chains(x), chain = 1)
to return draws for selected chain rather than all draws, and forsubset_draws(split_chains(x), chain = 2)
to return draws for chain 2 rather than fail.Operating system
posterior version number
1.4.1
The text was updated successfully, but these errors were encountered: