Skip to content

Commit fc278d2

Browse files
committed
update dependencies
1 parent 0f8f1c5 commit fc278d2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SequentialSamplingModels"
22
uuid = "0e71a2a6-2b30-4447-8742-d083a85e82d1"
33
authors = ["itsdfish"]
4-
version = "0.11.11"
4+
version = "0.11.12"
55

66
[deps]
77
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
@@ -29,7 +29,7 @@ TuringExt = "Turing"
2929

3030
[compat]
3131
Distributions = "v0.24.6, 0.25"
32-
DynamicPPL = "0.22.0,0.23.0,0.24.0,0.25,0.26.0,0.27,0.28.0"
32+
DynamicPPL = "0.22.0,0.23.0,0.24.0,0.25,0.26.0,0.27,0.28.0,0.29.0"
3333
FunctionZeros = "0.2.0,0.3.0, 1"
3434
HCubature = "1"
3535
Interpolations = "0.14.0,0.15.0"
@@ -44,7 +44,7 @@ SpecialFunctions = "1,2"
4444
Statistics = "1"
4545
StatsAPI = "1.0.0"
4646
StatsBase = "0.33.0,0.34.0"
47-
Turing = "0.29.0,0.30.0,0.31.0,0.32, 0.33, 0.34.0"
47+
Turing = "0.29.0,0.30.0,0.31.0,0.32,0.33,0.34.0,0.35.0"
4848
julia = "1"
4949

5050
[extras]
@@ -58,4 +58,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
5858
Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
5959

6060
[targets]
61-
test = ["Interpolations", "KernelDensity", "Plots", "QuadGK", "SafeTestsets", "StatsBase", "Statistics", "Test", "Turing"]
61+
test = ["Interpolations", "KernelDensity", "QuadGK", "SafeTestsets", "StatsBase", "Statistics", "Test", "Turing"]

ext/TuringExt.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module TuringExt
22

33
import DynamicPPL: reconstruct
44
import DynamicPPL: vectorize
5+
import DynamicPPL: tovec
56
using SequentialSamplingModels
67
import SequentialSamplingModels: predict_distribution
78
using Turing: @model
@@ -32,4 +33,6 @@ end
3233

3334
vectorize(d::SSM2D, r::NamedTuple) = [r...]
3435
reconstruct(d::SSM2D, v::NamedTuple) = deepcopy(v)
36+
tovec(x::@NamedTuple{choice::C, rt::R}) where {C <: Integer, R <: AbstractFloat} =
37+
[x.choice, x.rt]
3538
end

0 commit comments

Comments
 (0)