Skip to content

Commit 3f80199

Browse files
Add option for more readable sampler name in test suite (#498)
* Add option for more readable sampler name in test suite * Update Project.toml * Update src/test_utils.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7d312cd commit 3f80199

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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.2"
3+
version = "0.23.3"
44

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

src/test_utils.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,9 +791,10 @@ function test_sampler(
791791
varnames_filter=Returns(true),
792792
atol=1e-1,
793793
rtol=1e-3,
794+
sampler_name=typeof(sampler),
794795
kwargs...,
795796
)
796-
@testset "$(typeof(sampler)) on $(nameof(model))" for model in models
797+
@testset "$(sampler_name) on $(nameof(model))" for model in models
797798
chain = AbstractMCMC.sample(model, sampler, args...; kwargs...)
798799
target_values = posterior_mean(model)
799800
for vn in filter(varnames_filter, varnames(model))

0 commit comments

Comments
 (0)