Skip to content

Commit b6cb084

Browse files
author
mauriciogtec
committed
checked tests with new framework
1 parent 1d267b5 commit b6cb084

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/AdaptiveRejectionSampling.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ mutable struct RejectionSampler
197197
grad(x) = ForwardDiff.derivative(logf, x)
198198
grid = search_range[1]:δ:search_range[2]
199199
i1, i2 = findfirst(grad.(grid) .> 0.), findfirst(grad.(grid) .< 0.)
200-
println(i1, i2)
201-
@assert (i1 > 0) && (i2 == 0) "couldn't find initial points, please provide them or change `search_range`"
200+
@assert (i1 > 0) && (i2 > 0) "couldn't find initial points, please provide them or change `search_range`"
202201
x1, x2 = grid[i1], grid[i2]
203202
RejectionSampler(f, support, (x1, x2); kwargs...)
204203
end

0 commit comments

Comments
 (0)