From 3ed5cb3d1bc32aebf81e00610a7bd7571fd5390a Mon Sep 17 00:00:00 2001 From: Xianda Sun Date: Sun, 22 Sep 2024 21:00:16 +0100 Subject: [PATCH] fix 1.6 struct field splatting compat issue --- test/gibbs_example/gibbs.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/gibbs_example/gibbs.jl b/test/gibbs_example/gibbs.jl index 3e8efcf..0795e36 100644 --- a/test/gibbs_example/gibbs.jl +++ b/test/gibbs_example/gibbs.jl @@ -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