Skip to content
Snippets Groups Projects
Verified Commit e82d00fa authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Stéphane Adjemian
Browse files

:bug: hssmc.m: make sure no stale files are kept

Would cause crash in subsequent loading of output files as naming would be different

(cherry picked from commit 3fed17a5)
parent c17b24f5
Branches
Tags
No related merge requests found
Pipeline #10877 passed
......@@ -38,6 +38,8 @@ function mdd = hssmc(TargetFun, mh_bounds, dataset_, dataset_info, options_, M_,
% Set location for the simulated particles.
SimulationFolder = CheckPath('hssmc', M_.dname);
%delete old stale files before creating new ones
delete_stale_file(sprintf('%s%sparticles-*.mat', SimulationFolder,filesep))
% Define prior distribution
Prior = dprior(bayestopt_, options_.prior_trunc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment