Skip to content

Commit 64eb0e4

Browse files
committed
fix error
1 parent e194108 commit 64eb0e4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/gibbs_example/mh.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ function AbstractMCMC.logdensity_and_state(
1313
logdensity_function, state::MHState; recompute_logp::Bool=true
1414
)
1515
if recompute_logp
16-
logp, substate = AbstractMCMC.LogDensityProblems.logdensity(
17-
logdensity_function, state.params
18-
)
16+
logp = AbstractMCMC.LogDensityProblems.logdensity(logdensity_function, state.params)
1917
return logp, MHState(substate.params, logp)
2018
else
2119
return state.logp, state

0 commit comments

Comments
 (0)