Skip to content

Commit acb0f23

Browse files
committed
Fix multiple-chain method ambiguity
1 parent 0a6a10b commit acb0f23

File tree

4 files changed

+6
-26
lines changed

4 files changed

+6
-26
lines changed

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.40.3
2+
3+
Fix a method ambiguity caused by a bugfix in DynamicPPL 0.37.2.
4+
15
# 0.40.2
26

37
`sample(model, NUTS(), N; verbose=false)` now suppresses the 'initial step size' message.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Turing"
22
uuid = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
3-
version = "0.40.2"
3+
version = "0.40.3"
44

55
[deps]
66
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

src/mcmc/abstractmcmc.jl

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -57,27 +57,3 @@ function AbstractMCMC.sample(
5757
check_model && _check_model(model, alg)
5858
return AbstractMCMC.sample(rng, model, Sampler(alg), ensemble, N, n_chains; kwargs...)
5959
end
60-
61-
function AbstractMCMC.sample(
62-
rng::AbstractRNG,
63-
model::AbstractModel,
64-
sampler::Union{Sampler{<:InferenceAlgorithm},RepeatSampler},
65-
ensemble::AbstractMCMC.AbstractMCMCEnsemble,
66-
N::Integer,
67-
n_chains::Integer;
68-
chain_type=MCMCChains.Chains,
69-
progress=PROGRESS[],
70-
kwargs...,
71-
)
72-
return AbstractMCMC.mcmcsample(
73-
rng,
74-
model,
75-
sampler,
76-
ensemble,
77-
N,
78-
n_chains;
79-
chain_type=chain_type,
80-
progress=progress,
81-
kwargs...,
82-
)
83-
end

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Combinatorics = "1"
5353
Distributions = "0.25"
5454
DistributionsAD = "0.6.3"
5555
DynamicHMC = "2.1.6, 3.0"
56-
DynamicPPL = "0.37"
56+
DynamicPPL = "0.37.2"
5757
FiniteDifferences = "0.10.8, 0.11, 0.12"
5858
ForwardDiff = "0.10.12 - 0.10.32, 0.10, 1"
5959
HypothesisTests = "0.11"

0 commit comments

Comments
 (0)