From 8e6df8560462fa19098c6708284460cef958cea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?= Date: Fri, 13 Dec 2013 15:48:05 +0100 Subject: [PATCH] Fixed bug. --- matlab/check_posterior_analysis_data.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/matlab/check_posterior_analysis_data.m b/matlab/check_posterior_analysis_data.m index a968fdbe6..243b2d48d 100644 --- a/matlab/check_posterior_analysis_data.m +++ b/matlab/check_posterior_analysis_data.m @@ -22,13 +22,14 @@ if nargout>1 description = ''; end -MetropolisFolder = CheckPath('metropolis',M_.dname); +[MetropolisFolder, info] = CheckPath('metropolis',M_.dname); % Get informations about mcmc files. -if ~exist([ M_.dname '/metropolis'],'dir') +if info disp('check_posterior_analysis_data:: Can''t find any mcmc file!') return end + mhname = get_name_of_the_last_mh_file(M_); mhdate = get_date_of_a_file([MetropolisFolder filesep mhname]);