posterior_sampler_initialization.m: Allow running different samplers after each other

Transform error to warning
time-shift
Johannes Pfeifer 2021-01-20 17:00:29 +01:00
parent 32bdb82cf8
commit c78890d5ca
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ if ~options_.use_mh_covariance_matrix
if isfield(record,'ProposalCovariance') && isfield(record,'ProposalScaleVec')
if isfield(record,'MCMC_sampler')
if ~strcmp(record.MCMC_sampler,options_.posterior_sampler_options.posterior_sampling_method)
error(fprintf('Estimation::mcmc: The posterior_sampling_method differs from the one of the original chain. Please reset it to %s',record.MCMC_sampler))
warning('Estimation::mcmc: The posterior_sampling_method %s selected differs from the %s of the original chain. This may create problems with the convergence diagnostics.',options_.posterior_sampler_options.posterior_sampling_method,record.MCMC_sampler)
end
end
fprintf('Estimation::mcmc: Recovering the previous proposal density.\n')