Skip to content

Commit

Permalink
Throw error at the top of SMC if all parameters are fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
rsarfati committed Aug 21, 2019
1 parent 3a3894e commit 6546715
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/smc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ function smc(loglikelihood::Function, parameters::ParameterVector{U}, data::Matr

n_para = length(parameters)
n_free_para = length(free_para_inds)
@assert n_free_para > 0 "All model parameters are fixed!"

# Initialization of Particle Array Cloud
cloud = Cloud(n_para, n_parts)
Expand Down

0 comments on commit 6546715

Please sign in to comment.