trap slice sampler when doing mh_recover

(cherry picked from commit 4ba9c9296f1939fa14b1401886d9e9b86541e5e3)
time-shift
Marco Ratto 2019-01-15 14:29:29 +00:00 committed by Marco Ratto
parent beb165c002
commit 47900a5909
1 changed files with 3 additions and 1 deletions

View File

@ -366,7 +366,9 @@ elseif options_.mh_recover
FirstLine = ones(NumberOfBlocks,1);
LastFileFullIndicator=1;
end
[d,bayestopt_]=set_proposal_density_to_previous_value(record,options_,bayestopt_);
if ~isequal(options_.posterior_sampler_options.posterior_sampling_method,'slice'),
[d,bayestopt_]=set_proposal_density_to_previous_value(record,options_,bayestopt_);
end
%% Now find out what exactly needs to be redone
% 1. Check if really something needs to be done
% How many mh files should we have ?