Skip to content

Commit

Permalink
use latest version of AbstractPPL; add Accessors to docmeta for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxd3 committed Apr 12, 2024
1 parent 0db2083 commit ef2ffe5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Expand Up @@ -43,7 +43,7 @@ DynamicPPLZygoteRulesExt = ["ZygoteRules"]
[compat]
ADTypes = "0.2"
AbstractMCMC = "5"
AbstractPPL = "0.8.2"
AbstractPPL = "0.8.3"
Accessors = "0.1"
BangBang = "0.4"
Bijectors = "0.13"
Expand Down
2 changes: 1 addition & 1 deletion docs/make.jl
Expand Up @@ -10,7 +10,7 @@ using DynamicPPL: AbstractPPL
using Distributions

# Doctest setup
DocMeta.setdocmeta!(DynamicPPL, :DocTestSetup, :(using DynamicPPL); recursive=true)
DocMeta.setdocmeta!(DynamicPPL, :DocTestSetup, :(using DynamicPPL, Accessors); recursive=true)

makedocs(;
sitename="DynamicPPL",
Expand Down
14 changes: 0 additions & 14 deletions test/runtests.jl
Expand Up @@ -25,20 +25,6 @@ using Test

using DynamicPPL: getargs_dottilde, getargs_tilde, Selector

# TODO: temporarily overwrite for testing
using AbstractPPL: ALLOWED_OPTICS, VarName
# Allow compositions with optic.
function Base.:(optic::ALLOWED_OPTICS, vn::VarName{sym,<:ALLOWED_OPTICS}) where {sym}
vn_optic = getoptic(vn)
if vn_optic == identity
return VarName{sym}(optic)
elseif optic == identity
return vn
else
return VarName{sym}(optic vn_optic)
end
end

const DIRECTORY_DynamicPPL = dirname(dirname(pathof(DynamicPPL)))
const DIRECTORY_Turing_tests = joinpath(DIRECTORY_DynamicPPL, "test", "turing")
const GROUP = get(ENV, "GROUP", "All")
Expand Down

0 comments on commit ef2ffe5

Please sign in to comment.