We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7e29ef commit 5f0b381Copy full SHA for 5f0b381
src/mcmc/emcee.jl
@@ -50,8 +50,11 @@ function AbstractMCMC.step(
50
51
# Update the parameters if provided.
52
if initial_params !== nothing
53
- if !(initial_params isa AbstractVector && length(initial_params) == n)
54
- err_msg = "initial_params for `Emcee` must be a vector of initialisation strategies, with length equal to the number of walkers ($n)"
+ if !(
+ initial_params isa AbstractVector{<:DynamicPPL.AbstractInitStrategy} &&
55
+ length(initial_params) == n
56
+ )
57
+ err_msg = "initial_params for `Emcee` must be a vector of `DynamicPPL.AbstractInitStrategy`, with length equal to the number of walkers ($n)"
58
throw(ArgumentError(err_msg))
59
end
60
vis = map(vis, initial_params) do vi, strategy
0 commit comments