Skip to content

Commit

Permalink
Removed redundant rand for test model (#507)
Browse files Browse the repository at this point in the history
* Removed redundant rand for test model

* bump version
  • Loading branch information
yebai committed Jul 28, 2023
1 parent 8440c61 commit 2a1019b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion Project.toml
@@ -1,6 +1,6 @@
name = "DynamicPPL"
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
version = "0.23.8"
version = "0.23.9"

[deps]
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
Expand Down
13 changes: 0 additions & 13 deletions src/test_utils.jl
Expand Up @@ -581,19 +581,6 @@ function varnames(model::Model{typeof(demo_assume_matrix_dot_observe_matrix)})
return [@varname(s), @varname(m)]
end

function Random.rand(
rng::Random.AbstractRNG,
::Type{NamedTuple},
model::Model{typeof(demo_assume_matrix_dot_observe_matrix)},
)
n = length(model.args.x)
s = reshape(rand(rng, InverseGamma(2, 3), n), n ÷ 2, 2)
s_vec = vec(s)
m = rand(rng, MvNormal(zeros(n), Diagonal(s_vec)))

return (s=s, m=m)
end

const DemoModels = Union{
Model{typeof(demo_dot_assume_dot_observe)},
Model{typeof(demo_assume_index_observe)},
Expand Down

2 comments on commit 2a1019b

@yebai
Copy link
Member Author

@yebai yebai commented on 2a1019b Jul 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/88555

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.23.9 -m "<description of version>" 2a1019b6d3947225618fbec22df56843166cb552
git push origin v0.23.9

Please sign in to comment.