Closed jatotterdell closed 1 year ago
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.
@mjskay I would like to do a new posterior release soon (end of this week perhaps). @mjskay how complicated would it be for you to fix this? I am not sure I am confident enough to touch the rvar interface unless I have to :-D
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