Skip to content

Commit

Permalink
minor bugfix in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed Mar 2, 2023
1 parent dcf7bc2 commit 5fb344e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function StateHistoryCallback(states, selector=deepcopy)
return StateHistoryCallback{typeof(states), typeof(selector)}(states, selector)
end

function (cb::StateHistoryCallback)(rng, model, sampler, sample, state, i; kwargs...)
function (cb::StateHistoryCallback)(rng, model, sampler, transition, state, iteration; kwargs...)
push!(cb.states, cb.selector(state))
return nothing
end
Expand Down

0 comments on commit 5fb344e

Please sign in to comment.