|
360 | 360 | @testset "Serial sampling" begin
|
361 | 361 | # No dedicated chains type
|
362 | 362 | N = 10_000
|
363 |
| - chains = sample(MyModel(), MySampler(), MCMCSerial(), N, 1000) |
| 363 | + chains = sample(MyModel(), MySampler(), MCMCSerial(), N, 1000; progress=false) |
364 | 364 | @test chains isa Vector{<:Vector{<:MySample}}
|
365 | 365 | @test length(chains) == 1000
|
366 | 366 | @test all(length(x) == N for x in chains)
|
367 | 367 |
|
368 | 368 | Random.seed!(1234)
|
369 |
| - chains = sample(MyModel(), MySampler(), MCMCSerial(), N, 1000; chain_type=MyChain) |
| 369 | + chains = sample(MyModel(), MySampler(), MCMCSerial(), N, 1000; chain_type=MyChain, progress=false) |
370 | 370 |
|
371 | 371 | # Test output type and size.
|
372 | 372 | @test chains isa Vector{<:MyChain}
|
|
382 | 382 |
|
383 | 383 | # Test reproducibility.
|
384 | 384 | Random.seed!(1234)
|
385 |
| - chains2 = sample(MyModel(), MySampler(), MCMCSerial(), N, 1000; chain_type=MyChain) |
| 385 | + chains2 = sample(MyModel(), MySampler(), MCMCSerial(), N, 1000; chain_type=MyChain, progress=false) |
386 | 386 | @test all(ismissing(c.as[1]) for c in chains2)
|
387 | 387 | @test all(c1.as[i] == c2.as[i] for (c1, c2) in zip(chains, chains2), i in 2:N)
|
388 | 388 | @test all(c1.bs[i] == c2.bs[i] for (c1, c2) in zip(chains, chains2), i in 1:N)
|
|
0 commit comments