Skip to content
Snippets Groups Projects
Commit 3fed17a5 authored by Johannes Pfeifer's avatar Johannes Pfeifer
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
parent 2f7e7301
Branches
Tags
1 merge request!2316:bug: hssmc.m: make sure no stale files are kept
...@@ -38,6 +38,8 @@ function mdd = hssmc(TargetFun, mh_bounds, dataset_, dataset_info, options_, M_, ...@@ -38,6 +38,8 @@ function mdd = hssmc(TargetFun, mh_bounds, dataset_, dataset_info, options_, M_,
% Set location for the simulated particles. % Set location for the simulated particles.
SimulationFolder = CheckPath('hssmc', M_.dname); 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 % Define prior distribution
Prior = dprior(bayestopt_, options_.prior_trunc); 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