Skip to content

Commit

Permalink
Update ext/JuliaBUGSMCMCChainsExt.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
sunxd3 and github-actions[bot] authored Oct 21, 2024
1 parent 372a370 commit 087aabd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/JuliaBUGSMCMCChainsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ function JuliaBUGS.gen_chains(
param_vals = []
generated_quantities = []
for i in axes(samples)[1]
evaluation_env = first(JuliaBUGS.evaluate!!(model, JuliaBUGS.LogDensityContext(), samples[i]))
evaluation_env = first(
JuliaBUGS.evaluate!!(model, JuliaBUGS.LogDensityContext(), samples[i])
)
push!(
param_vals,
[AbstractPPL.get(evaluation_env, param_var) for param_var in param_vars],
Expand Down

0 comments on commit 087aabd

Please sign in to comment.