Commit 5c8efaae authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

More explicit error message when posterior mode file is outdated

parent 57836895
......@@ -104,6 +104,10 @@ dr = oo_.dr;
%% load mode file is necessary
if ~isempty(options_.mode_file) && ~options_.mh_posterior_mode_estimation
if length(xparam1) ~= nx
error([ 'ESTIMATION: the posterior mode file ' options_.mode_file ' has been generated using another specification. Please delete it and recompute the posterior mode.'])
%% load optimal_mh_scale parameter if previous run was with
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment