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 c985383 commit fc3dd21Copy full SHA for fc3dd21
src/sample.jl
@@ -315,7 +315,7 @@ function mcmcsample(
315
# Ensure that initial parameters are `nothing` or of the correct length
316
check_initial_params(init_params, nchains)
317
# We will use `getindex` later so we need to `collect`.
318
- _init_params = collect(init_params)
+ _init_params = init_params !== nothing ? collect(init_params) : nothing
319
320
# Set up a chains vector.
321
chains = Vector{Any}(undef, nchains)
0 commit comments