Skip to content

Commit

Permalink
fix 1.6 struct field splatting compat issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxd3 committed Sep 22, 2024
1 parent b798b2e commit 3ed5cb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/gibbs_example/gibbs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ function AbstractMCMC.step(
args...;
kwargs...,
) where {Tsamplingmap}
(; trace, mcmc_states, variable_sizes) = gibbs_state
trace = gibbs_state.trace
mcmc_states = gibbs_state.mcmc_states
variable_sizes = gibbs_state.variable_sizes

model_parameter_names = fieldnames(Tsamplingmap)
mcmc_states = map(model_parameter_names) do parameter_variable
Expand Down

0 comments on commit 3ed5cb3

Please sign in to comment.