Commit 24a5bd48 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Fixed bug where when using mode_compute=0 with a mode-file from...

Fixed bug where when using mode_compute=0 with a mode-file from mode_compute=6, mh_jscale is not loaded.
parent c2ce75aa
......@@ -118,7 +118,7 @@ end
%%%%
if any(isnan(bayestopt_.jscale))
if any(isnan(bayestopt_.jscale)) || (options_.mode_compute==0 && ~isempty(options_.mode_file))
if exist([ModelName '_optimal_mh_scale_parameter.mat'])% This file is created by mode_compute=6.
load([ModelName '_optimal_mh_scale_parameter'])
proposal_covariance_Cholesky_decomposition = d*Scale;
......
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