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 10, 2024
1 parent f48109b commit a1eec6e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions ext/JuliaBUGSMCMCChainsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,17 @@ function JuliaBUGS.gen_chains(
generated_quantities = []
for i in axes(samples)[1]
evaluation_env = first(evaluate!!(model, LogDensityContext(), samples[i]))
push!(param_vals, [AbstractPPL.get(evaluation_env, param_var) for param_var in param_vars])
push!(generated_quantities, [AbstractPPL.get(evaluation_env, generated_var) for generated_var in generated_vars])
push!(
param_vals,
[AbstractPPL.get(evaluation_env, param_var) for param_var in param_vars],
)
push!(
generated_quantities,
[
AbstractPPL.get(evaluation_env, generated_var) for
generated_var in generated_vars
],
)
end

param_name_leaves = collect(
Expand Down

0 comments on commit a1eec6e

Please sign in to comment.