Skip to content

Commit 2a1019b

Browse files
authored
Removed redundant rand for test model (#507)
* Removed redundant rand for test model * bump version
1 parent 8440c61 commit 2a1019b

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
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.23.8"
3+
version = "0.23.9"
44

55
[deps]
66
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"

src/test_utils.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -581,19 +581,6 @@ function varnames(model::Model{typeof(demo_assume_matrix_dot_observe_matrix)})
581581
return [@varname(s), @varname(m)]
582582
end
583583

584-
function Random.rand(
585-
rng::Random.AbstractRNG,
586-
::Type{NamedTuple},
587-
model::Model{typeof(demo_assume_matrix_dot_observe_matrix)},
588-
)
589-
n = length(model.args.x)
590-
s = reshape(rand(rng, InverseGamma(2, 3), n), n ÷ 2, 2)
591-
s_vec = vec(s)
592-
m = rand(rng, MvNormal(zeros(n), Diagonal(s_vec)))
593-
594-
return (s=s, m=m)
595-
end
596-
597584
const DemoModels = Union{
598585
Model{typeof(demo_dot_assume_dot_observe)},
599586
Model{typeof(demo_assume_index_observe)},

0 commit comments

Comments
 (0)