Skip to content
Snippets Groups Projects
Commit d9ede95f authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix problem with load_mh_file option under Octave/MinGW

parent 2aa7cf37
Branches
Tags
No related merge requests found
......@@ -214,7 +214,7 @@ elseif options_.load_mh_file && ~options_.mh_recover
%% Here we consider previous mh files (previous mh did not crash).
disp('MH: I''m loading past metropolis-hastings simulations...')
file = dir([ MhDirectoryName '/' ModelName '_mh_history.mat' ]);
files = dir([ MhDirectoryName '/' ModelName '_mh*.mat']);
files = dir([ MhDirectoryName filesep ModelName '_mh*.mat']);
if ~length(files)
disp('MH:: FAILURE! there is no MH file to load here!')
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment