Skip to content

Commit

Permalink
Reexport MCMCSerial (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion authored Jun 22, 2021
1 parent d54630e commit 4b7d916
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "EllipticalSliceSampling"
uuid = "cad2338a-1db2-11e9-3401-43bc07c9ede2"
authors = ["David Widmann <david.widmann@it.uu.se>"]
version = "0.4.3"
version = "0.4.4"

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

[compat]
AbstractMCMC = "2, 3"
AbstractMCMC = "3.2"
ArrayInterface = "2, 3"
Distributions = "0.22, 0.23, 0.24, 0.25"
julia = "1"
Expand Down
4 changes: 2 additions & 2 deletions src/EllipticalSliceSampling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ using Statistics: Statistics
export ESSModel, ESS

# reexports
using AbstractMCMC: sample, MCMCThreads, MCMCDistributed
export sample, MCMCThreads, MCMCDistributed
using AbstractMCMC: sample, MCMCThreads, MCMCDistributed, MCMCSerial
export sample, MCMCThreads, MCMCDistributed, MCMCSerial

include("abstractmcmc.jl")
include("model.jl")
Expand Down
8 changes: 4 additions & 4 deletions test/simple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@test var(samples) σ² atol = 0.05

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

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

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

# parallel sampling
for alg in (MCMCThreads(), MCMCDistributed())
for alg in (MCMCThreads(), MCMCDistributed(), MCMCSerial())
samples = sample(ESSModel(prior, ℓvec), ESS(), alg, 2_000, 5; progress=false)
@test samples isa Vector{Vector{Vector{Float64}}}
@test length(samples) == 5
Expand Down

2 comments on commit 4b7d916

@devmotion
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/39374

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.4 -m "<description of version>" 4b7d91684bad1603fd0665200186b16a7140c54a
git push origin v0.4.4

Please sign in to comment.