diff --git a/test/gibbs_example/mh.jl b/test/gibbs_example/mh.jl index 06895ca9..fae03611 100644 --- a/test/gibbs_example/mh.jl +++ b/test/gibbs_example/mh.jl @@ -14,7 +14,7 @@ function AbstractMCMC.logdensity_and_state( ) if recompute_logp logp = AbstractMCMC.LogDensityProblems.logdensity(logdensity_function, state.params) - return logp, MHState(substate.params, logp) + return logp, MHState(state.params, logp) else return state.logp, state end