Skip to content

Commit

Permalink
Bug Fix: support non-stabilized variational reference
Browse files Browse the repository at this point in the history
  • Loading branch information
sefffal committed Oct 21, 2024
1 parent 78420cc commit 49a77c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ext/OctofitterPigeonsExt/OctofitterPigeonsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,12 @@ Base.@nospecializeinfer function MCMCChains.Chains(

# Resolve the array back into the nested named tuple structure used internally.
# Augment with some internal fields
samples = get_sample(pt, chain_num)
local samples
try
samples = get_sample(pt, chain_num)
catch
samples = get_sample(pt)
end
chain_res = map(samples) do sample
θ_t = @view(sample[begin:begin+model.D-1])
logpot = sample[model.D+1]
Expand Down

0 comments on commit 49a77c1

Please sign in to comment.