Skip to content

Commit 4b7d916

Browse files
authored
Reexport MCMCSerial (#20)
1 parent d54630e commit 4b7d916

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "EllipticalSliceSampling"
22
uuid = "cad2338a-1db2-11e9-3401-43bc07c9ede2"
33
authors = ["David Widmann <[email protected]>"]
4-
version = "0.4.3"
4+
version = "0.4.4"
55

66
[deps]
77
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
@@ -11,7 +11,7 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1111
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1212

1313
[compat]
14-
AbstractMCMC = "2, 3"
14+
AbstractMCMC = "3.2"
1515
ArrayInterface = "2, 3"
1616
Distributions = "0.22, 0.23, 0.24, 0.25"
1717
julia = "1"

src/EllipticalSliceSampling.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ using Statistics: Statistics
1010
export ESSModel, ESS
1111

1212
# reexports
13-
using AbstractMCMC: sample, MCMCThreads, MCMCDistributed
14-
export sample, MCMCThreads, MCMCDistributed
13+
using AbstractMCMC: sample, MCMCThreads, MCMCDistributed, MCMCSerial
14+
export sample, MCMCThreads, MCMCDistributed, MCMCSerial
1515

1616
include("abstractmcmc.jl")
1717
include("model.jl")

test/simple.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
@test var(samples) σ² atol = 0.05
3030

3131
# parallel sampling
32-
for alg in (MCMCThreads(), MCMCDistributed())
32+
for alg in (MCMCThreads(), MCMCDistributed(), MCMCSerial())
3333
samples = sample(model, ESS(), alg, 2_000, 5; progress=false)
3434
@test samples isa Vector{Vector{Float64}}
3535
@test length(samples) == 5
@@ -57,7 +57,7 @@
5757
@test var(samples) σ² atol = 0.05
5858

5959
# parallel sampling
60-
for alg in (MCMCThreads(), MCMCDistributed())
60+
for alg in (MCMCThreads(), MCMCDistributed(), MCMCSerial())
6161
samples = sample(ESSModel(prior, ℓ), ESS(), alg, 2_000, 5; progress=false)
6262
@test samples isa Vector{Vector{Float64}}
6363
@test length(samples) == 5
@@ -86,7 +86,7 @@
8686
@test var(samples) σ² atol = 0.05
8787

8888
# parallel sampling
89-
for alg in (MCMCThreads(), MCMCDistributed())
89+
for alg in (MCMCThreads(), MCMCDistributed(), MCMCSerial())
9090
samples = sample(ESSModel(prior, ℓvec), ESS(), alg, 2_000, 5; progress=false)
9191
@test samples isa Vector{Vector{Vector{Float64}}}
9292
@test length(samples) == 5
@@ -115,7 +115,7 @@
115115
@test var(samples) σ² atol = 0.05
116116

117117
# parallel sampling
118-
for alg in (MCMCThreads(), MCMCDistributed())
118+
for alg in (MCMCThreads(), MCMCDistributed(), MCMCSerial())
119119
samples = sample(ESSModel(prior, ℓvec), ESS(), alg, 2_000, 5; progress=false)
120120
@test samples isa Vector{Vector{Vector{Float64}}}
121121
@test length(samples) == 5

0 commit comments

Comments
 (0)