Skip to content

Commit

Permalink
Bug fix: checkbounds error in Pigeons integration
Browse files Browse the repository at this point in the history
  • Loading branch information
sefffal committed Dec 9, 2024
1 parent c2eb654 commit 7aae014
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/OctofitterPigeonsExt/OctofitterPigeonsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ function Pigeons.initialization(model::Octofitter.LogDensityModel, rng::Abstract

Octofitter.get_starting_point!!(rng, model)

if isnothing(model.starting_points) || !haskey(model.starting_points, chain_no)
@show model.starting_points chain_no
@show checkbounds(model.starting_points, chain_no)
error("Insufficient starting points provided. Provide at least one per chain. (model.starting_points is too short)")
end
initial_θ_t = collect(model.starting_points[chain_no])
# initial_θ_t = collect(Octofitter.get_starting_point!!(rng, model))
initial_θ = model.invlink(initial_θ_t)
Expand Down

0 comments on commit 7aae014

Please sign in to comment.