Skip to content

Commit

Permalink
fixed bug with AbstractDict constructor for experimental Gibbs
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed Mar 10, 2024
1 parent 5e047ef commit 4bde75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/experimental/gibbs.jl
Expand Up @@ -193,7 +193,7 @@ end

# AbstractDict
function Gibbs(algs::AbstractDict)
return Gibbs(keys(algs), map(wrap_algorithm_maybe, values(algs)))
return Gibbs(collect(keys(algs)), map(wrap_algorithm_maybe, values(algs)))

Check warning on line 196 in src/experimental/gibbs.jl

View check run for this annotation

Codecov / codecov/patch

src/experimental/gibbs.jl#L195-L196

Added lines #L195 - L196 were not covered by tests
end
function Gibbs(algs::Pair...)
return Gibbs(map(first, algs), map(wrap_algorithm_maybe, map(last, algs)))

Check warning on line 199 in src/experimental/gibbs.jl

View check run for this annotation

Codecov / codecov/patch

src/experimental/gibbs.jl#L198-L199

Added lines #L198 - L199 were not covered by tests
Expand Down

0 comments on commit 4bde75a

Please sign in to comment.