Skip to content

Commit 2a01693

Browse files
committed
docs: Relax doctest filter to pass on small but nonzero numbers
1 parent b46eaee commit 2a01693

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/compare.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The ELPD is estimated by Pareto smoothed importance sampling leave-one-out cross
2727
2828
Compare the centered and non centered models of the eight school problem:
2929
30-
```jldoctest compare; filter = [r"└.*", r"(\\d+\\.\\d{3})\\d*" => s"\\1"]
30+
```jldoctest compare; filter = [r"└.*", r"(\\d+\\.\\d{3})\\d*" => s"\\1", r"(centered\\s*=\\s*)(?:0\\.0|[-+]?\\d+(?:\\.\\d+)?e-(?:1[5-9]|[2-9]\\d|1\\d{2,}))" => s"\\g<1>0.0"]
3131
julia> using ArviZExampleData
3232
3333
julia> models = (

src/model_weights.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ See also: [`AbstractModelWeightsMethod`](@ref), [`compare`](@ref)
2929
3030
Compute [`Stacking`](@ref) weights for two models:
3131
32-
```jldoctest model_weights; filter = [r"└.*", r"(\\d+\\.\\d{3})\\d*" => s"\\1"]
32+
```jldoctest model_weights; filter = [r"└.*", r"(\\d+\\.\\d{3})\\d*" => s"\\1", r"(centered\\s*=\\s*)(?:0\\.0|[-+]?\\d+(?:\\.\\d+)?e-(?:1[5-9]|[2-9]\\d|1\\d{2,}))" => s"\\g<1>0.0"]
3333
julia> using ArviZExampleData
3434
3535
julia> models = (

0 commit comments

Comments
 (0)