Skip to content
Snippets Groups Projects
Commit c57aa43c authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Bug fix.

<M_.fname>_optimal_mh_scale_parameter.mat was not deleted if mode_compute>0.
parent d3825dcd
Branches
Tags
No related merge requests found
...@@ -137,8 +137,7 @@ ub = bayestopt_.ub; ...@@ -137,8 +137,7 @@ ub = bayestopt_.ub;
dr = oo_.dr; dr = oo_.dr;
%% load optimal_mh_scale parameter if previous run was with % load optimal_mh_scale parameter if previous run was with mode_compute=6
%% mode_compute=6
mh_scale_fname = [M_.fname '_optimal_mh_scale_parameter.mat']; mh_scale_fname = [M_.fname '_optimal_mh_scale_parameter.mat'];
if exist(mh_scale_fname) if exist(mh_scale_fname)
if options_.mode_compute == 0 if options_.mode_compute == 0
...@@ -147,7 +146,7 @@ if exist(mh_scale_fname) ...@@ -147,7 +146,7 @@ if exist(mh_scale_fname)
clear tmp; clear tmp;
else else
% remove the file if mode_compute ~= 0 % remove the file if mode_compute ~= 0
delete('mh_scale_fname') delete(mh_scale_fname)
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment