Skip to content

Commit

Permalink
Disable Tapir on Julia 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Oct 21, 2024
1 parent 24e6870 commit 7b8806d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/essential/Essential.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export @model,
@logprob_str,
@prob_str

# AutoTapir is only supported by ADTypes v1.0 and above.
@static if VERSION >= v"1.10" && pkgversion(ADTypes) >= v"1"
# AutoTapir is only supported on Julia 1.10 and by ADTypes v1.0 and above.
@static if (v"1.10" <= VERSION < v"1.11") && pkgversion(ADTypes) >= v"1"
using ADTypes: AutoTapir
export AutoTapir
end
Expand Down
2 changes: 1 addition & 1 deletion test/test_utils/ad_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ adbackends = [
Turing.AutoForwardDiff(; chunksize=0), Turing.AutoReverseDiff(; compile=false)
]

# Tapir isn't supported for older Julia versions, hence the check.
# Tapir isn't supported for older Julia versions or for 1.11, hence the check.
install_tapir = isdefined(Turing, :AutoTapir)
if install_tapir
# TODO(mhauru) Is there a better way to install optional dependencies like this?
Expand Down

0 comments on commit 7b8806d

Please sign in to comment.