Skip to content

Commit de40505

Browse files
github-actions[bot]github-actions[bot]devmotion
committed
CompatHelper: bump compat for AbstractMCMC to 4, (keep existing compat) (#391)
This pull request changes the compat entry for the `AbstractMCMC` package from `2, 3.0` to `2, 3.0, 4`. This keeps the compat entries for earlier versions. Note: I have not tested your package with this new compat entry. It is your responsibility to make sure that your package tests pass before you merge this pull request. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: David Widmann <[email protected]>
1 parent 448d31b commit de40505

File tree

5 files changed

+19
-26
lines changed

5 files changed

+19
-26
lines changed

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DynamicPPL"
22
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
3-
version = "0.17.10"
3+
version = "0.18.0"
44

55
[deps]
66
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
@@ -17,7 +17,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1717
ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444"
1818

1919
[compat]
20-
AbstractMCMC = "2, 3.0"
20+
AbstractMCMC = "2, 3.0, 4"
2121
AbstractPPL = "0.5.1"
2222
BangBang = "0.3"
2323
Bijectors = "0.5.2, 0.6, 0.7, 0.8, 0.9, 0.10"

src/DynamicPPL.jl

-19
Original file line numberDiff line numberDiff line change
@@ -151,23 +151,4 @@ include("loglikelihoods.jl")
151151
include("submodel_macro.jl")
152152
include("test_utils.jl")
153153

154-
# Deprecations
155-
@deprecate empty!(vi::VarInfo) empty!!(vi::VarInfo)
156-
@deprecate push!(vi::AbstractVarInfo, vn::VarName, r, dist::Distribution) push!!(
157-
vi::AbstractVarInfo, vn::VarName, r, dist::Distribution
158-
)
159-
@deprecate push!(
160-
vi::AbstractVarInfo, vn::VarName, r, dist::Distribution, sampler::AbstractSampler
161-
) push!!(vi::AbstractVarInfo, vn::VarName, r, dist::Distribution, sampler::AbstractSampler)
162-
@deprecate push!(vi::AbstractVarInfo, vn::VarName, r, dist::Distribution, gid::Selector) push!!(
163-
vi::AbstractVarInfo, vn::VarName, r, dist::Distribution, gid::Selector
164-
)
165-
@deprecate push!(
166-
vi::AbstractVarInfo, vn::VarName, r, dist::Distribution, gid::Set{Selector}
167-
) push!!(vi::AbstractVarInfo, vn::VarName, r, dist::Distribution, gid::Set{Selector})
168-
169-
@deprecate setlogp!(vi, logp) setlogp!!(vi, logp)
170-
@deprecate acclogp!(vi, logp) acclogp!!(vi, logp)
171-
@deprecate resetlogp!(vi) resetlogp!!(vi)
172-
173154
end # module

test/Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
2020
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
2121

2222
[compat]
23-
AbstractMCMC = "2.1, 3.0"
23+
AbstractMCMC = "2.1, 3.0, 4"
2424
AbstractPPL = "0.5.1"
2525
Bijectors = "0.9.5, 0.10"
2626
Distributions = "0.25"

test/sampler.jl

+15-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,13 @@
6565

6666
# parallel sampling
6767
chains = sample(
68-
model, sampler, MCMCThreads(), 1, 10; init_params=0.2, progress=false
68+
model,
69+
sampler,
70+
MCMCThreads(),
71+
1,
72+
10;
73+
init_params=fill(0.2, 10),
74+
progress=false,
6975
)
7076
for c in chains
7177
@test c[1].metadata.p.vals == [0.2]
@@ -86,7 +92,13 @@
8692

8793
# parallel sampling
8894
chains = sample(
89-
model, sampler, MCMCThreads(), 1, 10; init_params=[4, -1], progress=false
95+
model,
96+
sampler,
97+
MCMCThreads(),
98+
1,
99+
10;
100+
init_params=fill([4, -1], 10),
101+
progress=false,
90102
)
91103
for c in chains
92104
@test c[1].metadata.s.vals == [4]
@@ -106,7 +118,7 @@
106118
MCMCThreads(),
107119
1,
108120
10;
109-
init_params=[missing, -1],
121+
init_params=fill([missing, -1], 10),
110122
progress=false,
111123
)
112124
for c in chains

test/turing/Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
55
Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
66

77
[compat]
8-
DynamicPPL = "0.17"
8+
DynamicPPL = "0.18"
99
Turing = "0.18, 0.19, 0.20"
1010
julia = "1.3"

0 commit comments

Comments
 (0)