Skip to content

Commit

Permalink
Test, format
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericWantiez committed Jul 11, 2021
1 parent 2fb7290 commit 22fa456
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/container.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
@test AdvancedPS.logZ(pc) log(sum(exp, 2 .* logps))

# Resample and propagate particles with reference particle
particles_ref = [AdvancedPS.Trace(fpc(logp)) for logp in logps]
particles_ref = [
AdvancedPS.Trace(fpc(logp), AdvancedPS.TracedRNG()) for logp in logps
]
pc_ref = AdvancedPS.ParticleContainer(particles_ref)
AdvancedPS.resample_propagate!(
Random.GLOBAL_RNG, pc_ref, AdvancedPS.resample_systematic, particles_ref[end]
Expand Down

0 comments on commit 22fa456

Please sign in to comment.