From df8cb0e370d76d456591c342490c94ad1a925a80 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Wed, 1 Jun 2022 13:25:47 +0200 Subject: [PATCH 1/3] Update transducer.jl --- test/transducer.jl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/transducer.jl b/test/transducer.jl index c534ac90..b161151c 100644 --- a/test/transducer.jl +++ b/test/transducer.jl @@ -70,8 +70,8 @@ chain = sample( MyModel(), MySampler(), N; discard_initial=discard_initial, progress=false ) - @test all(as[i] === chain[i].a for i in 1:N) - @test all(bs[i] === chain[i].b for i in 1:N) + @test all(as[i] == chain[i].a for i in 1:N) + @test all(bs[i] == chain[i].b for i in 1:N) end @testset "Thin chain by a factor of `thinning`" begin @@ -92,7 +92,8 @@ # Repeat sampling with `sample`. Random.seed!(1234) chain = sample(MyModel(), MySampler(), N; thinning=thinning, progress=false) - @test all(as[i] === chain[i].a for i in 1:N) - @test all(bs[i] === chain[i].b for i in 1:N) + @test as[1] === chain[1].a === missing + @test all(as[i] == chain[i].a for i in 2:N) + @test all(bs[i] == chain[i].b for i in 1:N) end end From aa82c2430bea33c7ac55787d971ccdfc7604e44e Mon Sep 17 00:00:00 2001 From: David Widmann Date: Wed, 1 Jun 2022 13:26:47 +0200 Subject: [PATCH 2/3] Update stepper.jl --- test/stepper.jl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/stepper.jl b/test/stepper.jl index bc0ea8b2..80143344 100644 --- a/test/stepper.jl +++ b/test/stepper.jl @@ -48,8 +48,8 @@ chain = sample( MyModel(), MySampler(), N; discard_initial=discard_initial, progress=false ) - @test all(as[i] === chain[i].a for i in 1:N) - @test all(bs[i] === chain[i].b for i in 1:N) + @test all(as[i] == chain[i].a for i in 1:N) + @test all(bs[i] == chain[i].b for i in 1:N) end @testset "Thin chain by a factor of `thinning`" begin @@ -68,7 +68,8 @@ # Repeat sampling with `sample`. Random.seed!(1234) chain = sample(MyModel(), MySampler(), N; thinning=thinning, progress=false) - @test all(as[i] === chain[i].a for i in 1:N) - @test all(bs[i] === chain[i].b for i in 1:N) + @test as[1] === chain[1].a === missing + @test all(as[i] == chain[i].a for i in 2:N) + @test all(bs[i] == chain[i].b for i in 1:N) end end From 346c6a27b6d9c3df99229a35e570c9bbc62043a5 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Wed, 1 Jun 2022 16:40:36 +0200 Subject: [PATCH 3/3] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 69a7fb83..fa2220b7 100644 --- a/Project.toml +++ b/Project.toml @@ -3,7 +3,7 @@ uuid = "80f14c24-f653-4e6a-9b94-39d6b0f70001" keywords = ["markov chain monte carlo", "probablistic programming"] license = "MIT" desc = "A lightweight interface for common MCMC methods." -version = "4.1.1" +version = "4.1.2" [deps] BangBang = "198e06fe-97b7-11e9-32a5-e1d131e6ad66"