Skip to content

Commit 7d6a983

Browse files
mhaurutorfjelde
andcommitted
Add suggestions from code review
Co-authored-by: Tor Erlend Fjelde <tor.erlend95@gmail.com>
1 parent 38ac128 commit 7d6a983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcmc/gibbs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ function setparams_varinfo!!(
509509
# update its logprob. To do this, we have to call evaluate!! with the sampler, rather
510510
# than just a context, because ESS is peculiar in how it uses LikelihoodContext for
511511
# some variables and DefaultContext for others.
512-
return last(DynamicPPL.evaluate!!(model, params, sampler))
512+
return last(DynamicPPL.evaluate!!(model, params, SamplingContext(sampler)))
513513
end
514514

515515
function setparams_varinfo!!(

0 commit comments

Comments
 (0)