Skip to content

Commit e25c2c0

Browse files
committed
Replace vectorize(d, r) -> DynamicPPL.tovec(r)
vectorize was removed in DynamicPPL 0.29.0
1 parent 1d99b6e commit e25c2c0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/mcmc/Inference.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using DynamicPPL: Metadata, VarInfo, TypedVarInfo,
55
islinked, invlink!, link!,
66
setindex!!, push!!,
77
setlogp!!, getlogp,
8-
VarName, getsym, vectorize,
8+
VarName, getsym,
99
_getvns, getdist,
1010
Model, Sampler, SampleFromPrior, SampleFromUniform,
1111
DefaultContext, PriorContext,

src/mcmc/ess.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ struct ESSPrior{M<:Model,S<:Sampler{<:ESS},V<:AbstractVarInfo,T}
8585
dist = getdist(varinfo, vn)
8686
EllipticalSliceSampling.isgaussian(typeof(dist)) ||
8787
error("[ESS] only supports Gaussian prior distributions")
88-
vectorize(dist, mean(dist))
88+
DynamicPPL.tovec(mean(dist))
8989
end
9090
return new{M,S,V,typeof(μ)}(model, sampler, varinfo, μ)
9191
end

src/mcmc/particle_mcmc.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ function DynamicPPL.assume(
380380
elseif is_flagged(vi, vn, "del")
381381
unset_flag!(vi, vn, "del") # Reference particle parent
382382
r = rand(trng, dist)
383-
vi[vn] = vectorize(dist, r)
383+
vi[vn] = DynamicPPL.tovec(r)
384384
DynamicPPL.setgid!(vi, spl.selector, vn)
385385
setorder!(vi, vn, get_num_produce(vi))
386386
else

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Clustering = "0.14, 0.15"
4545
Distributions = "0.25"
4646
DistributionsAD = "0.6.3"
4747
DynamicHMC = "2.1.6, 3.0"
48-
DynamicPPL = "0.28, 0.29"
48+
DynamicPPL = "0.29"
4949
FiniteDifferences = "0.10.8, 0.11, 0.12"
5050
ForwardDiff = "0.10.12 - 0.10.32, 0.10"
5151
HypothesisTests = "0.11"

0 commit comments

Comments
 (0)