Skip to content

Commit 871d6f8

Browse files
authored
Merge pull request #104 from itsdfish/update_dependencies
update dependencies
2 parents 0f8f1c5 + 101a187 commit 871d6f8

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ jobs:
1616
matrix:
1717
version:
1818
- '1.9' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
19-
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
20-
#- 'nightly'
19+
- 'nightly'
2120
os:
2221
- ubuntu-latest
2322
arch:

Project.toml

Lines changed: 3 additions & 3 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]

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)