changed warnings into errors when load_mh_file or recovery is used and
there is no metropolis history filetime-shift
parent
b7b50fa901
commit
c88a8aaaa6
|
@ -37,12 +37,10 @@ DirectoryName = CheckPath('metropolis',M_.dname);
|
||||||
file = dir([ DirectoryName ,filesep, M_.fname '_mh_history.mat']);
|
file = dir([ DirectoryName ,filesep, M_.fname '_mh_history.mat']);
|
||||||
files = dir([ DirectoryName ,filesep, M_.fname '_mh*.mat' ]);
|
files = dir([ DirectoryName ,filesep, M_.fname '_mh*.mat' ]);
|
||||||
if ~length(files)
|
if ~length(files)
|
||||||
disp('MH:: FAILURE! there is no MH file to load here!')
|
error('MH:: FAILURE! there is no MH file to load here!')
|
||||||
return
|
|
||||||
end
|
end
|
||||||
if ~length(file)
|
if ~length(file)
|
||||||
disp('MH:: FAILURE! there is no MH-history file!')
|
error('MH:: FAILURE! there is no MH-history file!')
|
||||||
return
|
|
||||||
else
|
else
|
||||||
load([ DirectoryName '/' M_.fname '_mh_history.mat'])
|
load([ DirectoryName '/' M_.fname '_mh_history.mat'])
|
||||||
end
|
end
|
||||||
|
|
|
@ -221,12 +221,10 @@ elseif options_.load_mh_file && ~options_.mh_recover
|
||||||
file = dir([ MhDirectoryName '/' ModelName '_mh_history.mat' ]);
|
file = dir([ MhDirectoryName '/' ModelName '_mh_history.mat' ]);
|
||||||
files = dir([ MhDirectoryName filesep ModelName '_mh*.mat']);
|
files = dir([ MhDirectoryName filesep ModelName '_mh*.mat']);
|
||||||
if ~length(files)
|
if ~length(files)
|
||||||
disp('MH:: FAILURE! there is no MH file to load here!')
|
error('MH:: FAILURE! there is no MH file to load here!')
|
||||||
return
|
|
||||||
end
|
end
|
||||||
if ~length(file)
|
if ~length(file)
|
||||||
disp('MH:: FAILURE! there is no MH-history file!')
|
error('MH:: FAILURE! there is no MH-history file!')
|
||||||
return
|
|
||||||
else
|
else
|
||||||
load([ MhDirectoryName '/' ModelName '_mh_history.mat'])
|
load([ MhDirectoryName '/' ModelName '_mh_history.mat'])
|
||||||
end
|
end
|
||||||
|
@ -281,8 +279,7 @@ elseif options_.mh_recover
|
||||||
disp(' ')
|
disp(' ')
|
||||||
file = dir([MhDirectoryName '/' ModelName '_mh_history.mat']);
|
file = dir([MhDirectoryName '/' ModelName '_mh_history.mat']);
|
||||||
if ~length(file)
|
if ~length(file)
|
||||||
disp('MH:: FAILURE! there is no MH-history file!')
|
error('MH:: FAILURE! there is no MH-history file!')
|
||||||
return
|
|
||||||
else
|
else
|
||||||
load([ MhDirectoryName '/' ModelName '_mh_history.mat'])
|
load([ MhDirectoryName '/' ModelName '_mh_history.mat'])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue