Skip to content

Commit 8d29ad3

Browse files
committed
fix test errors
1 parent c47ade4 commit 8d29ad3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/gibbs.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Flatten all the values in the trace into a single vector.
4747
4848
# Examples
4949
50-
```jldoctest
50+
```jldoctest; setup = :(using AbstractMCMC: flatten)
5151
julia> flatten((a=[1,2], b=[3,4,5]))
5252
[1, 2, 3, 4, 5]
5353
@@ -66,7 +66,7 @@ Reverse operation of flatten. Reshape the vector into the original arrays using
6666
6767
# Examples
6868
69-
```jldoctest
69+
```jldoctest; setup = :(using AbstractMCMC: unflatten)
7070
julia> unflatten([1,2,3,4,5], (a=(2,), b=(3,)))
7171
(a=[1,2], b=[3,4,5])
7272
@@ -180,7 +180,10 @@ function AbstractMCMC.step(
180180
args...;
181181
kwargs...,
182182
)
183-
(; trace, mcmc_states, variable_sizes) = gibbs_state
183+
trace = gibbs_state.trace
184+
mcmc_states = gibbs_state.mcmc_states
185+
variable_sizes = gibbs_state.variable_sizes
186+
184187
mcmc_states_dict = Dict(
185188
keys(mcmc_states) .=> [mcmc_states[k] for k in keys(mcmc_states)]
186189
)

0 commit comments

Comments
 (0)