Skip to content

Commit

Permalink
Reviewdog code style suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
mhauru and github-actions[bot] authored Jan 14, 2025
1 parent d93a0dd commit a8fd37e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/mcmc/gibbs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -654,14 +654,10 @@ function gibbs_step_recursive(
# going to be a significant expense anyway.
# Set the state of the current sampler, accounting for any changes made by other
# samplers.
state = setparams_varinfo!!(
conditioned_model, sampler, state, vi
)
state = setparams_varinfo!!(conditioned_model, sampler, state, vi)

# Take a step with the local sampler.
new_state = last(
AbstractMCMC.step(rng, conditioned_model, sampler, state; kwargs...)
)
new_state = last(AbstractMCMC.step(rng, conditioned_model, sampler, state; kwargs...))

new_vi_local = varinfo(new_state)
# Merge the latest values for all the variables in the current sampler.
Expand Down

0 comments on commit a8fd37e

Please sign in to comment.