Skip to content

Commit e76747e

Browse files
Clean
1 parent f6df82d commit e76747e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/container.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,7 @@ function resample_propagate!(
289289
# Compute the effective sample size ``1 / ∑ wᵢ²`` with normalized weights ``wᵢ``
290290
ess = inv(sum(abs2, weights))
291291

292-
#if ess ≤ resampler.threshold * length(pc)
293-
if true
292+
if ess resampler.threshold * length(pc)
294293
resample_propagate!(rng, pc, resampler.resampler, ref; weights=weights)
295294
else
296295
update_keys!(pc, ref)

0 commit comments

Comments
 (0)