Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxd3 committed Sep 17, 2024
1 parent e194108 commit 64eb0e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/gibbs_example/mh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ function AbstractMCMC.logdensity_and_state(
logdensity_function, state::MHState; recompute_logp::Bool=true
)
if recompute_logp
logp, substate = AbstractMCMC.LogDensityProblems.logdensity(
logdensity_function, state.params
)
logp = AbstractMCMC.LogDensityProblems.logdensity(logdensity_function, state.params)
return logp, MHState(substate.params, logp)
else
return state.logp, state
Expand Down

0 comments on commit 64eb0e4

Please sign in to comment.