Fixed bug where when using mode_compute=0 with a mode-file from mode_compute=6, mh_jscale is not loaded.

time-shift
Johannes Pfeifer 2012-09-16 12:10:53 +02:00
parent c2ce75aa45
commit 24a5bd4868
1 changed files with 1 additions and 1 deletions

View File

@ -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;