Commit f38a1eda authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

posterior_sampler.m: trap case where record.ProposalCovariance is not filled (slice sampler)

parent 765109ee
Pipeline #5457 passed with stages
in 55 minutes and 23 seconds
......@@ -156,8 +156,10 @@ else
record.FunctionEvalPerIteration(offset+1:sum(nBlockPerCPU(1:j)))=fout(j).record.FunctionEvalPerIteration(offset+1:sum(nBlockPerCPU(1:j)));
record.LastSeeds(offset+1:sum(nBlockPerCPU(1:j)))=fout(j).record.LastSeeds(offset+1:sum(nBlockPerCPU(1:j)));
if j==1
record.ProposalCovariance=fout(j).record.ProposalCovariance;
record.ProposalScaleVec=fout(j).record.ProposalScaleVec;
if isfield(fout(j).record,'ProposalCovariance') && isfield(fout(j).record,'ProposalScaleVec')
record.ProposalCovariance=fout(j).record.ProposalCovariance;
record.ProposalScaleVec=fout(j).record.ProposalScaleVec;
end
end
end
options_.parallel_info.parallel_recover = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment