diff --git a/test/gibbs_example/mh.jl b/test/gibbs_example/mh.jl index 45b4661c..06895ca9 100644 --- a/test/gibbs_example/mh.jl +++ b/test/gibbs_example/mh.jl @@ -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