Skip to content

Commit 1dd7d5a

Browse files
committed
inline definition of set_retained_vns_del!
1 parent 97774f9 commit 1dd7d5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mcmc/particle_mcmc.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ function AbstractMCMC.step(
346346
reference = AdvancedPS.forkr(AdvancedPS.Trace(model, spl, vi, state.rng))
347347

348348
# For all other particles, do not retain the variables but resample them.
349-
DynamicPPL.set_retained_vns_del!(vi)
349+
for vn in keys(vi)
350+
DynamicPPL.set_flag!(vi, vn, "del")
351+
end
350352

351353
# Create a new set of particles.
352354
num_particles = spl.alg.nparticles

0 commit comments

Comments
 (0)